Hides pipeline duration in commit box when it is zero (nil)

This commit is contained in:
Guilherme Vieira 2017-10-20 21:49:18 -02:00
parent e1122c9f6d
commit 188e860804
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -0,0 +1,5 @@
---
title: Hides pipeline duration in commit box when it is zero (nil)
merge_request: 14979
author: gvieira37
type: fixed