[ 
https://issues.apache.org/jira/browse/DTACLOUD-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278866#comment-13278866
 ] 

Marios Andreou commented on DTACLOUD-210:
-----------------------------------------

ACK - all patches apply cleanly and improvements all seem sane. 1 minor comment 
(just so you know i've actually looked ;) ):

Patch 4/7: when a volume is not attached I think it would be even better to 
just show 'none' rather than unknown for the "Attached To"...

diff --git a/server/views/storage_volumes/show.html.haml 
b/server/views/storage_volumes/show.html.haml
index 6575175..62e7f8d 100644
--- a/server/views/storage_volumes/show.html.haml
+++ b/server/views/storage_volumes/show.html.haml

<<SNIP>>...

@@ -20,8 +20,11 @@
       %p{ :'data-role' => 'fieldcontain'}=@storage_volume.state
     %li{ :'data-role' => 'list-divider'} Attached to
     %li
-      %a{ :href => instance_url( @storage_volume.instance_id)}
-        = @storage_volume.instance_id || 'unknown'
+      - if @storage_volume.instance_id
+        %a{ :href => instance_url( @storage_volume.instance_id)}
+          = @storage_volume.instance_id
+      - else
+        %p{ :'data-role' => 'fieldcontain'}= 'unknown'
        -elsif @storage_volume.state == "AVAILABLE"
           %p{ :'data-role' => 'fieldcontain'}= 'none'
        -else
            %p{ :'data-role' => 'fieldcontain'}= 'unknown'



This can be addressed in a future patch though - would probably be a pita to 
have to go back and change this minor thing. The only thing stopping me from 
pushing these now is that you forgot to tick the 'for inclusion in ASF works' 
box in the uploads. Do you already have a signed Apache CLA? Otherwise can you 
give some other indication that you grant license for these files to be 
included? A note here should suffice imho...
                
> various small GUI improvements: use hyperlinks for FWs and volumes in 
> instances, allow name to be specified for new volumes, display name when 
> available, don't use hyperlink for 'unknown' instances, don't use <--> if no 
> device specified
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-210
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-210
>             Project: DeltaCloud
>          Issue Type: Improvement
>          Components: Server
>            Reporter: Dies Koper
>            Assignee: David Lutterkort
>            Priority: Minor
>         Attachments: 
> 0001-use-hyperlinks-for-firewall-entries-in-instance-show.patch, 
> 0002-use-volume-name-instead-of-id-for-volume-name-if-ava.patch, 
> 0003-change-button-name-for-volume-attaching-from-create-.patch, 
> 0004-don-t-use-hyperlink-for-unknown-for-detached-volume.patch, 
> 0005-don-t-show-separator-if-no-device-name-available.patch, 
> 0006-use-hyperlinks-for-attached-volumes-in-instance-show.patch, 
> 0007-allow-volume-name-to-be-specified-in-GUI.patch
>
>
> Various small GUI improvements:
> - use hyperlinks for FWs and volumes in instances to those resources
> - allow optional name to be specified for new volumes
> - use volume name instead of id for volume name when available
> - rename create button to 'attach' to attach a volume to an instance
> - don't use hyperlinks for 'unknown', for detached volumes
> - don't use <--> separator in instances' volume list if no device specified 
> (such as for FGCP)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to