diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-10-17 16:53:36 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-10-17 18:53:30 +0300 |
commit | 09298333ffcebaf5ce30dbdfe937abd42c3c1aaf (patch) | |
tree | 70757f0d93c6aed633fcaef27947d9716f2c81be | |
parent | 9e0d3f6ed37ce3c685c190d554c4b7f17f0fc1d0 (diff) |
Use time_ago_with_tooltip where appropriate.
-rw-r--r-- | app/views/projects/builds/show.html.haml | 6 | ||||
-rw-r--r-- | app/views/projects/commit_statuses/_commit_status.html.haml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/builds/show.html.haml b/app/views/projects/builds/show.html.haml index c854860a208..08640e19c9d 100644 --- a/app/views/projects/builds/show.html.haml +++ b/app/views/projects/builds/show.html.haml @@ -40,7 +40,7 @@ %i.fa.fa-time #{duration_in_words(@build.finished_at, @build.started_at)} .pull-right - = @build.updated_at.stamp('19:00 Aug 27') + #{time_ago_with_tooltip(@build.finished_at)} - if @build.show_warning? - unless @build.any_runners_online? @@ -104,11 +104,11 @@ #{duration_in_words(@build.finished_at, @build.started_at)} %p %span.attr-name Created: - #{time_ago_in_words(@build.created_at)} ago + #{time_ago_with_tooltip(@build.created_at)} - if @build.finished_at %p %span.attr-name Finished: - #{time_ago_in_words(@build.finished_at)} ago + #{time_ago_with_tooltip(@build.finished_at)} %p %span.attr-name Runner: - if @build.runner && current_user && current_user.admin diff --git a/app/views/projects/commit_statuses/_commit_status.html.haml b/app/views/projects/commit_statuses/_commit_status.html.haml index 637154f56aa..0f8c6a1b85d 100644 --- a/app/views/projects/commit_statuses/_commit_status.html.haml +++ b/app/views/projects/commit_statuses/_commit_status.html.haml @@ -36,7 +36,7 @@ %td.timestamp - if commit_status.finished_at - %span #{time_ago_in_words commit_status.finished_at} ago + %span #{time_ago_with_tooltip(commit_status.finished_at)} - if defined?(coverage) && coverage %td.coverage |