Paired-With: Nick Lewis <[email protected]>
Signed-off-by: Jesse Wolfe <[email protected]>
---
Local-branch: ticket/next/5174-part2
app/views/reports/_report.html.haml | 8 +-------
app/views/reports/_report_title.html.haml | 6 ++++++
app/views/reports/diff.html.haml | 5 +++++
app/views/reports/diff_summary.html.haml | 5 +++++
4 files changed, 17 insertions(+), 7 deletions(-)
create mode 100644 app/views/reports/_report_title.html.haml
diff --git a/app/views/reports/_report.html.haml
b/app/views/reports/_report.html.haml
index 0c57f5a..c28b4e4 100644
--- a/app/views/reports/_report.html.haml
+++ b/app/views/reports/_report.html.haml
@@ -1,12 +1,6 @@
.header
%h2
- %span.status{:class => report.status}
- = report_status_icon(report)
- Report:
- = report.time
- - if report.node
- %span.alt for
- = link_to report.node.name, report.node
+ = render 'report_title', :report => report
%ul.actions
- if report.kind == "inspect" and ! report.baseline?
%li= link_to "Make Baseline", {:id => report, :action =>
"make_baseline"}, :method => :put, :confirm => 'Are you sure?', :class =>
"button"
diff --git a/app/views/reports/_report_title.html.haml
b/app/views/reports/_report_title.html.haml
new file mode 100644
index 0000000..2de0db8
--- /dev/null
+++ b/app/views/reports/_report_title.html.haml
@@ -0,0 +1,6 @@
+%span.status{:class => report.status}
+ = report_status_icon(report)
+ Report:
+ = link_to report.time, report
+%span.alt for
+= link_to report.node.name, report.node
diff --git a/app/views/reports/diff.html.haml b/app/views/reports/diff.html.haml
index 115e725..c0a8529 100644
--- a/app/views/reports/diff.html.haml
+++ b/app/views/reports/diff.html.haml
@@ -1,3 +1,8 @@
+.header
+ %h2
+ = render 'report_title', :report => @my_report
+ compared against
+ = render 'report_title', :report => @baseline_report
%table.inspector
%thead
%tr
diff --git a/app/views/reports/diff_summary.html.haml
b/app/views/reports/diff_summary.html.haml
index 7881586..e12cb66 100644
--- a/app/views/reports/diff_summary.html.haml
+++ b/app/views/reports/diff_summary.html.haml
@@ -1,3 +1,8 @@
+.header
+ %h2
+ = render 'report_title', :report => @my_report
+ compared against
+ = render 'report_title', :report => @baseline_report
%table.inspector
%thead
%tr
--
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.