Paired-With: Nick Lewis <[email protected]>
Signed-off-by: Jesse Wolfe <[email protected]>
---
Local-branch: ticket/next/5174-part2
 app/views/reports/diff.html.haml         |    2 +-
 app/views/reports/diff_summary.html.haml |    8 ++++++--
 public/stylesheets/tables.css            |    7 +++++--
 3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/app/views/reports/diff.html.haml b/app/views/reports/diff.html.haml
index a55a2b2..115e725 100644
--- a/app/views/reports/diff.html.haml
+++ b/app/views/reports/diff.html.haml
@@ -10,7 +10,7 @@
       - properties_hash.each do |property, expected_actual|
         - expected, actual = expected_actual
         %tr
-          %td= h resource
+          %td{:id => h(resource)}= h resource
           %td= h property
           %td= h expected
           %td= h actual
diff --git a/app/views/reports/diff_summary.html.haml 
b/app/views/reports/diff_summary.html.haml
index 68d1f10..7881586 100644
--- a/app/views/reports/diff_summary.html.haml
+++ b/app/views/reports/diff_summary.html.haml
@@ -5,7 +5,11 @@
       %th Status
   %tbody
     - @resources.each do |resource, status|
-      %tr{:class => status}
-        %td= h resource
+      %tr{:class => "status #{status}"}
+        %td
+          - if status == :failure
+            = link_to h(resource), :id => @my_report, :action => "diff", 
:baseline_id => @baseline_report, :anchor => h(resource)
+          - else
+            = h(resource)
         %td= h status
 = link_to "Details", :id => @my_report, :action => "diff", :baseline_id => 
@baseline_report
diff --git a/public/stylesheets/tables.css b/public/stylesheets/tables.css
index d9c1bce..475fd08 100644
--- a/public/stylesheets/tables.css
+++ b/public/stylesheets/tables.css
@@ -70,11 +70,14 @@ table tbody td.status.failure {
   color: red;
 }
 
-table#events tbody tr.status.failure {
+table tbody tr.status.failure td {
+  background-color: #ffb7b7;
+}
+table tbody tr:nth-child(even).status.failure td {
   background-color: #ffc7c7;
 }
 
-table#events tbody tr.status.changed {
+table tbody tr.status.changed {
   background-color: #FF9;
 }
 
-- 
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