deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [2/15] git commit: * views/images/show.html.haml: do not trip over images with no HWP
Date Tue, 28 Aug 2012 00:16:54 GMT
* views/images/show.html.haml: do not trip over images with no HWP


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/0bf2d11e
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/0bf2d11e
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/0bf2d11e

Branch: refs/heads/master
Commit: 0bf2d11efb5e3ace2eb7d8e537dc6009699558f6
Parents: f677819
Author: David Lutterkort <lutter@redhat.com>
Authored: Fri Aug 24 17:50:09 2012 -0700
Committer: David Lutterkort <lutter@redhat.com>
Committed: Mon Aug 27 14:47:17 2012 -0700

----------------------------------------------------------------------
 server/views/images/show.html.haml |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/0bf2d11e/server/views/images/show.html.haml
----------------------------------------------------------------------
diff --git a/server/views/images/show.html.haml b/server/views/images/show.html.haml
index 482633c..c166e87 100644
--- a/server/views/images/show.html.haml
+++ b/server/views/images/show.html.haml
@@ -20,11 +20,12 @@
     %li{ :'data-role' => 'list-divider'} Architecture
     %li
       %p{ :'data-role' => 'fieldcontain'}=@image.architecture
-    %li{ :'data-role' => 'list-divider'} Hardware Profiles
-    %li
-      %div{ :'data-role' => 'controlgroup', :'data-type' => "horizontal" }
-        - @image.hardware_profiles.each do |hwp|
-          %a{ :href => api_url_for("hardware_profiles/#{hwp.name}"), :'data-role' =>
"button", :'data-ajax' => 'false'} #{hwp.name}
+    - if @image.hardware_profiles
+      %li{ :'data-role' => 'list-divider'} Hardware Profiles
+      %li
+        %div{ :'data-role' => 'controlgroup', :'data-type' => "horizontal" }
+          - @image.hardware_profiles.each do |hwp|
+            %a{ :href => api_url_for("hardware_profiles/#{hwp.name}"), :'data-role' =>
"button", :'data-ajax' => 'false'} #{hwp.name}
     %li{ :'data-role' => 'list-divider'} Actions
     %li
       %div{ :'data-role' => 'controlgroup', :'data-type' => "horizontal" }


Mime
View raw message