summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGuilherme Vieira <guilherme@flipstudio.net>2017-10-20 21:49:18 -0200
committerGuilherme Vieira <guilherme@flipstudio.net>2017-10-20 21:54:46 -0200
commit188e860804285f6d54140df54d8fa62a15f99dc9 (patch)
tree44aac18a369263ae6f1b69c72df2c06e814e975b /app
parente1122c9f6daff16b900a0837d25789e1e5bdc56c (diff)
downloadgitlab-ce-188e860804285f6d54140df54d8fa62a15f99dc9.tar.gz
Hides pipeline duration in commit box when it is zero (nil)
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/commit/_commit_box.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/commit/_commit_box.html.haml b/app/views/projects/commit/_commit_box.html.haml
index 09bcd187e59..ff17372fdd9 100644
--- a/app/views/projects/commit/_commit_box.html.haml
+++ b/app/views/projects/commit/_commit_box.html.haml
@@ -77,5 +77,6 @@
#{ n_(s_('Pipeline|with stage'), s_('Pipeline|with stages'), last_pipeline.stages_count) }
.mr-widget-pipeline-graph
= render 'shared/mini_pipeline_graph', pipeline: last_pipeline, klass: 'js-commit-pipeline-graph'
- in
- = time_interval_in_words last_pipeline.duration
+ - if last_pipeline.duration
+ in
+ = time_interval_in_words last_pipeline.duration