BigW Consortium Gitlab

Commit 08b8f489 by Grzegorz Bizon

Improve build view for erased build details

parent 86a49dfb
...@@ -78,8 +78,8 @@ ...@@ -78,8 +78,8 @@
- if @build.erased? - if @build.erased?
.erased.alert.alert-warning .erased.alert.alert-warning
- erased_by = "by #{@build.erased_by.username}" if @build.erased_by - erased_by = "by #{link_to @build.erased_by.name, user_path(@build.erased_by)}" if @build.erased_by
Build has been erased #{erased_by} #{time_ago_with_tooltip(@build.erased_at)} Build has been erased #{erased_by.html_safe} #{time_ago_with_tooltip(@build.erased_at)}
- else - else
%pre.trace#build-trace %pre.trace#build-trace
%code.bash %code.bash
...@@ -139,6 +139,10 @@ ...@@ -139,6 +139,10 @@
%p %p
%span.attr-name Finished: %span.attr-name Finished:
#{time_ago_with_tooltip(@build.finished_at)} #{time_ago_with_tooltip(@build.finished_at)}
- if @build.erased_at
%p
%span.attr-name Erased:
#{time_ago_with_tooltip(@build.erased_at)}
%p %p
%span.attr-name Runner: %span.attr-name Runner:
- if @build.runner && current_user && current_user.admin - if @build.runner && current_user && current_user.admin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment