From 08b8f489290c3b0456fcaef3064d1c333717cb6f Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Tue, 16 Feb 2016 09:20:05 +0100 Subject: [PATCH] Improve build view for erased build details --- app/views/projects/builds/show.html.haml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/projects/builds/show.html.haml b/app/views/projects/builds/show.html.haml index 88bf45114a7..ec46ce4d020 100644 --- a/app/views/projects/builds/show.html.haml +++ b/app/views/projects/builds/show.html.haml @@ -78,8 +78,8 @@ - if @build.erased? .erased.alert.alert-warning - - erased_by = "by #{@build.erased_by.username}" if @build.erased_by - Build has been erased #{erased_by} #{time_ago_with_tooltip(@build.erased_at)} + - erased_by = "by #{link_to @build.erased_by.name, user_path(@build.erased_by)}" if @build.erased_by + Build has been erased #{erased_by.html_safe} #{time_ago_with_tooltip(@build.erased_at)} - else %pre.trace#build-trace %code.bash @@ -139,6 +139,10 @@ %p %span.attr-name Finished: #{time_ago_with_tooltip(@build.finished_at)} + - if @build.erased_at + %p + %span.attr-name Erased: + #{time_ago_with_tooltip(@build.erased_at)} %p %span.attr-name Runner: - if @build.runner && current_user && current_user.admin