deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH] Fixes JIRA DTACLOUD_296 - storage volumes and HTML UI
Date Fri, 10 Aug 2012 14:05:55 GMT
On Aug 9, 2012, at 6:03 PM, marios@redhat.com wrote:

ACK.

> From: marios <marios@redhat.com>
> 
> https://issues.apache.org/jira/browse/DTACLOUD-296
> 
> Signed-off-by: marios <marios@redhat.com>
> ---
> server/views/storage_volumes/attach.html.haml |    2 +-
> server/views/storage_volumes/show.html.haml   |    2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/views/storage_volumes/attach.html.haml b/server/views/storage_volumes/attach.html.haml
> index 0127ccd..8c20753 100644
> --- a/server/views/storage_volumes/attach.html.haml
> +++ b/server/views/storage_volumes/attach.html.haml
> @@ -1,6 +1,6 @@
> %h1 Attach storage volume
> 
> -%form{ :action => attach_storage_volume_url(params[:id]), :method => :post }
> +%form{ :action => api_url_for("storage_volumes/#{params[:id]}/attach"), :method =>
:post }
>   %p
>     %label
>       Instance ID:
> diff --git a/server/views/storage_volumes/show.html.haml b/server/views/storage_volumes/show.html.haml
> index 2ac9944..9a9da37 100644
> --- a/server/views/storage_volumes/show.html.haml
> +++ b/server/views/storage_volumes/show.html.haml
> @@ -40,4 +40,4 @@
>             =link_to_action "Delete", api_url_for("storage_volumes/#{@storage_volume.id}"),
:delete
>             =link_to_action "Attach", api_url_for("storage_volumes/#{@storage_volume.id}/attach_instance"),
:get
>           - if @storage_volume.instance_id
> -            =link_to_action "Detach", detach_storage_volume_url(@storage_volume.id),
:post
> +            =link_to_action "Detach", api_url_for("storage_volumes/#{@storage_volume.id}/detach"),
:post
> -- 
> 1.7.6.5
> 


Mime
View raw message