Paired-With: Randall Hansen
Signed-off-by: Pieter van de Bruggen <[email protected]>
---
Local-branch: tickets/next/6989
app/views/reports/_report.html.haml | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/app/views/reports/_report.html.haml
b/app/views/reports/_report.html.haml
index e51286e..102b03d 100644
--- a/app/views/reports/_report.html.haml
+++ b/app/views/reports/_report.html.haml
@@ -8,11 +8,12 @@
%li= link_to 'Destroy', report, :confirm => 'Are you sure?', :method =>
:delete, :class => "delete button"
.item
+ - user_facing = { '600_resource_statuses' => 'Events', '700_log' => 'Log',
'800_metrics' => 'Metrics' }
%ul#report-tabs
- Registry.each_callback :core, :report_view_widgets do |widget|
%li
- %a{ :href => "##{widget.name}" }
- = widget.name
+ %a{ :href => "##{user_facing[widget.name].downcase}" }
+ = user_facing[widget.name]
- Registry.each_callback :core, :report_view_widgets do |widget|
- %div(id="#{widget.name}")
+ %div(id="#{user_facing[widget.name].downcase}")
= widget.call self, report
--
1.7.4.1
--
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.