Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-10-23 10:40:49 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-10-23 10:40:49 +0300
commit9b5685379efcb6ce43c8f8b38404152a8dc3ad9b (patch)
tree64ace80028b4aab5dd4e825e18e6791c2ae19d45 /app/views/projects/pipelines/_info.html.haml
parent66e02d395b42149b7fd0d96ca9aea1814f6eef28 (diff)
parent680afb3d77db2f90b1c79d3917ce5d2df187c68b (diff)
Merge branch '42611-removed-branch-link' into 'master'
Resolve "Removed branch link in pipelines page is broken" Closes #42611 See merge request gitlab-org/gitlab-ce!21451
Diffstat (limited to 'app/views/projects/pipelines/_info.html.haml')
-rw-r--r--app/views/projects/pipelines/_info.html.haml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/pipelines/_info.html.haml b/app/views/projects/pipelines/_info.html.haml
index dbb563f51ea..2575efc0981 100644
--- a/app/views/projects/pipelines/_info.html.haml
+++ b/app/views/projects/pipelines/_info.html.haml
@@ -13,7 +13,11 @@
= pluralize @pipeline.total_size, "job"
- if @pipeline.ref
from
- = link_to @pipeline.ref, project_ref_path(@project, @pipeline.ref), class: "ref-name"
+ - if @pipeline.ref_exists?
+ = link_to @pipeline.ref, project_ref_path(@project, @pipeline.ref), class: "ref-name"
+ - else
+ %span.ref-name
+ = @pipeline.ref
- if @pipeline.duration
in
= time_interval_in_words(@pipeline.duration)