From 727555810ec10eb19f3d065e36890e08b638a5e1 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 30 May 2012 15:07:34 +1200 Subject: [PATCH] Fixed hardcoded margin for external backtraces. --- app/views/notices/_backtrace.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/notices/_backtrace.html.haml b/app/views/notices/_backtrace.html.haml index 060c155..4e9e806 100644 --- a/app/views/notices/_backtrace.html.haml +++ b/app/views/notices/_backtrace.html.haml @@ -4,7 +4,7 @@ -# Includes a margin of x lines that are not toggled. - external_margin = 3 - grouped_lines(lines).each do |in_app, line_group| - - if !in_app && line_group.size > 6 + - if !in_app && line_group.size > (external_margin * 3) = rows_for_line_segment(line_group, 0, external_margin) = rows_for_line_segment(line_group, 2, line_group.size - (external_margin * 2), 'hidden_external_backtrace') %tr -- libgit2 0.21.2