diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-05-04 21:30:13 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-05-05 17:41:37 +0300 |
commit | 9f3f22c8959b430811102fb790895e7edd61d3f9 (patch) | |
tree | b1eabbab0a3d1298b6095ad9d2dde67a8d248ee4 /app/helpers/builds_helper.rb | |
parent | acd9cd0906046f3d11d95aa9dc9d1af0498ef2ef (diff) |
Failed Jobs tab only shows 10 job traces for performance
Diffstat (limited to 'app/helpers/builds_helper.rb')
-rw-r--r-- | app/helpers/builds_helper.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/helpers/builds_helper.rb b/app/helpers/builds_helper.rb index 0145029fb60..2eb2c6c7389 100644 --- a/app/helpers/builds_helper.rb +++ b/app/helpers/builds_helper.rb @@ -1,7 +1,11 @@ module BuildsHelper - def build_summary(build) + def build_summary(build, skip: false) if build.has_trace? - build.trace.html(last_lines: 10).html_safe + if skip + link_to "View job trace", pipeline_build_url(build.pipeline, build) + else + build.trace.html(last_lines: 10).html_safe + end else "No job trace" end |