deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH 2/2] Adds show.html.haml display of driver providers when available
Date Wed, 14 Dec 2011 10:47:29 GMT
From: marios <marios@redhat.com>


Signed-off-by: marios <marios@redhat.com>
---
 server/views/drivers/show.html.haml |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/server/views/drivers/show.html.haml b/server/views/drivers/show.html.haml
index b11bcdd..062a5bc 100644
--- a/server/views/drivers/show.html.haml
+++ b/server/views/drivers/show.html.haml
@@ -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
-- 
1.7.6.4


Mime
View raw message