deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1214351 - /deltacloud/trunk/server/views/drivers/show.html.haml
Date Wed, 14 Dec 2011 17:17:22 GMT
Author: marios
Date: Wed Dec 14 17:17:22 2011
New Revision: 1214351

URL: http://svn.apache.org/viewvc?rev=1214351&view=rev
Log:
Adds show.html.haml display of driver providers when available

Modified:
    deltacloud/trunk/server/views/drivers/show.html.haml

Modified: deltacloud/trunk/server/views/drivers/show.html.haml
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/views/drivers/show.html.haml?rev=1214351&r1=1214350&r2=1214351&view=diff
==============================================================================
--- deltacloud/trunk/server/views/drivers/show.html.haml (original)
+++ deltacloud/trunk/server/views/drivers/show.html.haml Wed Dec 14 17:17:22 2011
@@ -12,9 +12,14 @@
     %li{ :'data-role' => 'list-divider'} Provider
     %li
       %p{ :'data-role' => 'fieldcontain'}
-        - providers = driver_provider(@driver).keys.collect { |k| k.to_s }.sort
-        - if providers.empty?
-          None
+        - if @providers
+          - @providers.each do |p|
+            %h3= p.id
+            %p= p.url
         - else
-          - providers.each do |k|
-            %p= k
+          - providers = driver_provider(@driver).keys.collect { |k| k.to_s }.sort
+          - if providers.empty?
+            None
+          - else
+            - providers.each do |k|
+              %p= k



Mime
View raw message