diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-11 19:15:16 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-11 19:15:16 +0200 |
commit | 608abf01dc91c9b3368f96c3c91276fa9b66aa68 (patch) | |
tree | bd44d43a93487e992a526962a045511122a52cef /app/views/builds/show.html.haml | |
parent | 52b3bbb8e8b71e7e52ed6ae854f511d25553340b (diff) | |
download | gitlab-ci-608abf01dc91c9b3368f96c3c91276fa9b66aa68.tar.gz |
Show commit sha for build duration. Fixed tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/builds/show.html.haml')
-rw-r--r-- | app/views/builds/show.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/builds/show.html.haml b/app/views/builds/show.html.haml index 6db825c..d664641 100644 --- a/app/views/builds/show.html.haml +++ b/app/views/builds/show.html.haml @@ -51,10 +51,10 @@ - else = link_to "Retry", retry_project_build_path(@project, @build.sha), class: 'btn btn-sm btn-primary', method: :post - - if @build.started_at + - if @build.duration %p %span.attr-name Duration: - #{build_duration @build} + #{distance_of_time_in_words @build.duration} %p %span.attr-name Created: #{time_ago_in_words(@build.created_at)} ago |