Previously, the baseline diff UI had been showing an empty select box when there were no baselines.
Paired-With: Jesse Wolfe Signed-off-by: Nick Lewis <[email protected]> --- Local-branch: ticket/next/5867 app/views/reports/_report.html.haml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/views/reports/_report.html.haml b/app/views/reports/_report.html.haml index 335d8a9..2517237 100644 --- a/app/views/reports/_report.html.haml +++ b/app/views/reports/_report.html.haml @@ -8,7 +8,7 @@ %li= link_to 'Destroy', report, :confirm => 'Are you sure?', :method => :delete, :class => "delete button" .item - - if report.kind == "inspect" + - if report.kind == "inspect" and Report.baselines.any? .section %h3= "Compare with baseline:" - form_tag({:id => report, :action => "diff"}, :method => :get) do -- 1.7.3.5 -- 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.
