Return-Path: X-Original-To: apmail-incubator-deltacloud-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltacloud-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7585598E9 for ; Mon, 3 Oct 2011 11:35:40 +0000 (UTC) Received: (qmail 64304 invoked by uid 500); 3 Oct 2011 11:35:40 -0000 Delivered-To: apmail-incubator-deltacloud-commits-archive@incubator.apache.org Received: (qmail 64287 invoked by uid 500); 3 Oct 2011 11:35:40 -0000 Mailing-List: contact deltacloud-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-commits@incubator.apache.org Received: (qmail 64280 invoked by uid 99); 3 Oct 2011 11:35:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 11:35:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 11:35:37 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 80B1A238889B; Mon, 3 Oct 2011 11:35:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1178378 - /incubator/deltacloud/trunk/server/views/storage_volumes/show.html.haml Date: Mon, 03 Oct 2011 11:35:16 -0000 To: deltacloud-commits@incubator.apache.org From: mfojtik@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111003113516.80B1A238889B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mfojtik Date: Mon Oct 3 11:35:16 2011 New Revision: 1178378 URL: http://svn.apache.org/viewvc?rev=1178378&view=rev Log: DTACLOUD-83: Fixed the snapshot text Modified: incubator/deltacloud/trunk/server/views/storage_volumes/show.html.haml Modified: incubator/deltacloud/trunk/server/views/storage_volumes/show.html.haml URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/views/storage_volumes/show.html.haml?rev=1178378&r1=1178377&r2=1178378&view=diff ============================================================================== --- incubator/deltacloud/trunk/server/views/storage_volumes/show.html.haml (original) +++ incubator/deltacloud/trunk/server/views/storage_volumes/show.html.haml Mon Oct 3 11:35:16 2011 @@ -26,7 +26,7 @@ %li %div{ :'data-role' => 'controlgroup', :'data-type' => "horizontal" } - if ["AVAILABLE", "IN-USE"].include?(@storage_volume.state) - =link_to_action "Snaphot", api_url_for("storage_snapshots/new?volume_id=#{@storage_volume.id}"), :get + =link_to_action "Snapshot", api_url_for("storage_snapshots/new?volume_id=#{@storage_volume.id}"), :get - unless @storage_volume.instance_id =link_to_action "Delete", destroy_storage_volume_url(@storage_volume.id), :delete =link_to_action "Attach", api_url_for("storage_volumes/attach?id=#{@storage_volume.id}"), :get