deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [1/2] git commit: Adds Run action button in HTML UI for run_on_instance
Date Fri, 18 May 2012 15:58:49 GMT
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 <marios@redhat.com>
Authored: Fri May 18 18:57:10 2012 +0300
Committer: marios <marios@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


Mime
View raw message