You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/05/18 17:58:49 UTC

[1/2] git commit: Adds Run action button in HTML UI for run_on_instance

Updated Branches:
  refs/heads/master 7bc7e8a43 -> 140765e6d


Adds Run action button in HTML UI for run_on_instance

>From JIRA DTACLOUD_211 thanks to Dies Koper diesk@fast.au.fujitsu.com

https://issues.apache.org/jira/browse/DTACLOUD-211


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/140765e6
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/140765e6
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/140765e6

Branch: refs/heads/master
Commit: 140765e6d5e5e2a13533c14ebba9f194aaa4576f
Parents: 1bb1e32
Author: marios <ma...@redhat.com>
Authored: Fri May 18 18:57:10 2012 +0300
Committer: marios <ma...@redhat.com>
Committed: Fri May 18 18:57:10 2012 +0300

----------------------------------------------------------------------
 server/views/instances/show.html.haml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/140765e6/server/views/instances/show.html.haml
----------------------------------------------------------------------
diff --git a/server/views/instances/show.html.haml b/server/views/instances/show.html.haml
index 72dc12d..994f1c2 100644
--- a/server/views/instances/show.html.haml
+++ b/server/views/instances/show.html.haml
@@ -56,5 +56,7 @@
       %div{ :'data-role' => 'controlgroup', :'data-type' => "horizontal" }
         - @instance.actions.each do |action|
           =link_to_action action, self.send(:"#{action}_instance_url", @instance.id), instance_action_method(action)
+        - if @instance.state=="RUNNING" and driver.respond_to?(:run_on_instance)
+          =link_to_action 'run script', "#{run_instance_url(@instance.id)};id=#{@instance.id}", :get
         - if @instance.can_create_image?
           =link_to_action 'Create Image', api_url_for("images/new?instance_id=#{@instance.id}"), :get