Just use string interpolation, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6084#note_15026132
This commit is contained in:
Lin Jen-Shin 2016-09-07 17:14:35 +08:00
parent 61bc90af0e
commit 7b75476610

View file

@ -11,8 +11,7 @@
in
= time_interval_in_words(@pipeline.duration)
- if @pipeline.queued_duration
(queued for
= "#{time_interval_in_words(@pipeline.queued_duration)})"
= "(queued for #{time_interval_in_words(@pipeline.queued_duration)})"
.pull-right
= link_to namespace_project_pipeline_path(@project.namespace, @project, @pipeline), class: "ci-status ci-#{@pipeline.status}" do