diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-16 04:33:01 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-05-05 17:01:50 +0300 |
commit | 4c0adb9ee9ee6631b7cda6562d0e20b7daab8a9e (patch) | |
tree | bc5ca0c37afcbe140cfb4bad2752e32ba35043dc /app/helpers/builds_helper.rb | |
parent | 992aafbc03e315b6f8fa6355ab1856934f95d758 (diff) |
Build failures summary page for pipelines
Diffstat (limited to 'app/helpers/builds_helper.rb')
-rw-r--r-- | app/helpers/builds_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/builds_helper.rb b/app/helpers/builds_helper.rb index 2fcb7a59fc3..0145029fb60 100644 --- a/app/helpers/builds_helper.rb +++ b/app/helpers/builds_helper.rb @@ -1,4 +1,12 @@ module BuildsHelper + def build_summary(build) + if build.has_trace? + build.trace.html(last_lines: 10).html_safe + else + "No job trace" + end + end + def sidebar_build_class(build, current_build) build_class = '' build_class += ' active' if build.id === current_build.id |