Several tables were rendering content that was not correctly wrapped in
table tags.

Signed-off-by: Jesse Wolfe <[email protected]>
---
Local-branch: ticket/next/5142
 app/views/node_classes/index.html.haml |   13 +++++++------
 app/views/node_groups/index.html.haml  |   13 +++++++------
 app/views/nodes/_nodes.html.haml       |    6 +++++-
 3 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/app/views/node_classes/index.html.haml 
b/app/views/node_classes/index.html.haml
index 2951c85..efe8a1f 100644
--- a/app/views/node_classes/index.html.haml
+++ b/app/views/node_classes/index.html.haml
@@ -14,18 +14,19 @@
           -# = check_box_tag "check_all"
         %th.name
           Name
-    %tbody
-      - if @node_classes.present?
+    - if @node_classes.present?
+      %tbody
         - for node_class in @node_classes
           %tr[node_class]
             -# %td.check
               -# = check_box_tag "check_all"
             %td.name
               = link_to h(node_class.name), node_class
-        %tfoot
-          %tr
-            %td= pagination_for @node_classes
-      - else
+      %tfoot
+        %tr
+          %td= pagination_for @node_classes
+    - else
+      %tbody
         %tr
           %td
             = describe_no_matches_for :classes
diff --git a/app/views/node_groups/index.html.haml 
b/app/views/node_groups/index.html.haml
index 3d8f134..e442dcb 100644
--- a/app/views/node_groups/index.html.haml
+++ b/app/views/node_groups/index.html.haml
@@ -14,18 +14,19 @@
           -# = check_box_tag "check_all"
         %th.name
           Name
-    %tbody
-      - if @node_groups.present?
+    - if @node_groups.present?
+      %tbody
         - for node_group in @node_groups
           %tr[node_group]
             -# %td.check
               -# = check_box_tag "check_all"
             %td.name
               = link_to h(node_group.name), node_group
-        %tfoot
-          %tr
-            %td= pagination_for @node_groups
-      - else
+      %tfoot
+        %tr
+          %td= pagination_for @node_groups
+    - else
+      %tbody
         %tr
           %td
             = describe_no_matches_for :groups
diff --git a/app/views/nodes/_nodes.html.haml b/app/views/nodes/_nodes.html.haml
index cba48e7..dbc237e 100644
--- a/app/views/nodes/_nodes.html.haml
+++ b/app/views/nodes/_nodes.html.haml
@@ -30,7 +30,11 @@
                 = sources.map{|s| link_to(s.name,s)}.join(", ")
           %td.latest_report
             = node.last_report ? node.last_report.time : "Has not reported"
-      = pagination_for nodes, more_link
     - else
       %td.empty{:colspan => container.nil? ? 3 : 4}
         = describe_no_matches_for :nodes
+  - if nodes.present?
+    %tfoot
+      %tr
+        %td{:colspan => container.nil? ? 3 : 4 }
+          = pagination_for nodes, more_link
-- 
1.7.0.4

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to