summaryrefslogtreecommitdiff
path: root/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-07-18 16:44:10 +0200
committerRémy Coutable <remy@rymai.me>2016-07-18 16:44:10 +0200
commitdd4f50b1874ac066c7e47be223e98d8a9b317fc7 (patch)
tree268c37d3711d1eaa0a9eb78687b0f5f15b9d1230 /app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
parent017ae313dc84682e260e960f93fb4a55af0df523 (diff)
downloadgitlab-ce-dd4f50b1874ac066c7e47be223e98d8a9b317fc7.tar.gz
Fix build duration when build is not finished yet19937-fix-wrong-build-elapsed-time
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml')
-rw-r--r--app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml b/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
index 542827b2f15..331dc1fcc29 100644
--- a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
+++ b/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml
@@ -51,7 +51,7 @@
%td.duration
- if generic_commit_status.duration
= icon("clock-o")
- #{duration_in_words(generic_commit_status.finished_at, generic_commit_status.started_at)}
+ = time_interval_in_words(generic_commit_status.duration)
%td.timestamp
- if generic_commit_status.finished_at