From ba8148ef2231bb199ef433dae7ed5d8fee451cf6 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 6 Mar 2013 21:56:49 +1300 Subject: [PATCH] Only show FULL BACKTRACE if there is a backtrace --- app/views/mailer/err_notification.html.haml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/views/mailer/err_notification.html.haml b/app/views/mailer/err_notification.html.haml index 37bd6aa..ad94c51 100644 --- a/app/views/mailer/err_notification.html.haml +++ b/app/views/mailer/err_notification.html.haml @@ -48,9 +48,11 @@ %td(style="text-align: right; padding-right: 10px; color: #6a6a6a;")= key.to_s.titleize + ":" %td= auto_link(value.to_s) %br - %p.heading FULL BACKTRACE: - - @notice.backtrace_lines.each do |line| - %p.backtrace - = link_to_source_file(line) do - = line.to_s - %br + - if @notice.backtrace_lines.any? + %br + %p.heading FULL BACKTRACE: + - @notice.backtrace_lines.each do |line| + %p.backtrace + = link_to_source_file(line) do + = line.to_s + %br -- libgit2 0.21.2