Return-Path: X-Original-To: apmail-deltacloud-commits-archive@www.apache.org Delivered-To: apmail-deltacloud-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 75D54C480 for ; Wed, 13 Jun 2012 13:49:54 +0000 (UTC) Received: (qmail 86317 invoked by uid 500); 13 Jun 2012 13:49:54 -0000 Delivered-To: apmail-deltacloud-commits-archive@deltacloud.apache.org Received: (qmail 86301 invoked by uid 500); 13 Jun 2012 13:49:54 -0000 Mailing-List: contact commits-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list commits@deltacloud.apache.org Received: (qmail 86294 invoked by uid 99); 13 Jun 2012 13:49:54 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 13:49:54 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 2F4B61107D; Wed, 13 Jun 2012 13:49:54 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mfojtik@apache.org To: commits@deltacloud.apache.org X-Mailer: ASF-Git Admin Mailer Subject: git commit: Core: Fixed the link to :run action in HTML UI Message-Id: <20120613134954.2F4B61107D@tyr.zones.apache.org> Date: Wed, 13 Jun 2012 13:49:54 +0000 (UTC) Updated Branches: refs/heads/master 43af3a1e1 -> 9e568c909 Core: Fixed the link to :run action in HTML UI Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/9e568c90 Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/9e568c90 Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/9e568c90 Branch: refs/heads/master Commit: 9e568c909956d34900a5e148487ce005b5758623 Parents: 43af3a1 Author: Michal Fojtik Authored: Wed Jun 13 15:50:41 2012 +0200 Committer: Michal fojtik Committed: Wed Jun 13 15:50:41 2012 +0200 ---------------------------------------------------------------------- server/views/instances/show.html.haml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/deltacloud/blob/9e568c90/server/views/instances/show.html.haml ---------------------------------------------------------------------- diff --git a/server/views/instances/show.html.haml b/server/views/instances/show.html.haml index ce8fa4d..9910de4 100644 --- a/server/views/instances/show.html.haml +++ b/server/views/instances/show.html.haml @@ -59,6 +59,6 @@ - @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 command', api_url('/instances/%s/run' % @instance.id), :get + =link_to_action 'run command', api_url_for('instances/%s/run' % @instance.id), :get - if @instance.can_create_image? =link_to_action 'Create Image', api_url_for("images/new?instance_id=#{@instance.id}"), :get