summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-09-23 19:05:07 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-09-23 19:05:07 +0800
commit0a7ab639dd8c9b9e292237983f2a9ece37102b6f (patch)
tree3898717695779c43567fe14a619e1c1c6b7b6348
parentecc1b13f2ca23093d76c220dd27f60878edb8bd8 (diff)
downloadgitlab-ce-0a7ab639dd8c9b9e292237983f2a9ece37102b6f.tar.gz
Only show last 10 lines from trace
-rw-r--r--app/views/notify/pipeline_failed_email.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/notify/pipeline_failed_email.html.haml b/app/views/notify/pipeline_failed_email.html.haml
index d7a626ba625..c6e8480e77f 100644
--- a/app/views/notify/pipeline_failed_email.html.haml
+++ b/app/views/notify/pipeline_failed_email.html.haml
@@ -157,7 +157,7 @@
%tr.build-log
%td{:colspan => "2", :style => "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:0 0 15px;"}
%pre{:style => "font-family:Monaco,'Lucida Console','Courier New',Courier,monospace;background-color:#fafafa;border-radius:3px;overflow:hidden;white-space:pre-wrap;word-break:break-all;font-size:13px;line-height:1.4;padding:12px;color:#333333;margin:0;"}
- = build.trace_with_state[:html].html_safe
+ = build.trace_html(last_lines: 10).html_safe
%tr.footer
%td{:style => "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:25px 0;font-size:13px;line-height:1.6;color:#5c5c5c;"}
%img{:alt => "GitLab", :height => "33", :src => image_url('mailers/ci_pipeline_notif_v1/gitlab-logo-full-horizontal.gif'), :style => "display:block;margin:0 auto 1em;", :width => "90"}/