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:
authorFilipa Lacerda <filipa@gitlab.com>2018-10-08 18:55:13 +0300
committerFilipa Lacerda <filipa@gitlab.com>2018-10-08 18:55:13 +0300
commit0d583e5e8a36231eef614305208ea67ab91a5b62 (patch)
tree729ae65ff6115151e713e50ee0d19fe0a4a9bab4 /app/views/projects/pipelines/_info.html.haml
parentfa875ba7a9441df6827ef1d6b05405c66ee0c579 (diff)
Creates ref_exists? method for Pipeline class
Diffstat (limited to 'app/views/projects/pipelines/_info.html.haml')
-rw-r--r--app/views/projects/pipelines/_info.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/pipelines/_info.html.haml b/app/views/projects/pipelines/_info.html.haml
index 57c5f64ee8d..ba7f542f68e 100644
--- a/app/views/projects/pipelines/_info.html.haml
+++ b/app/views/projects/pipelines/_info.html.haml
@@ -13,7 +13,7 @@
= pluralize @pipeline.total_size, "job"
- if @pipeline.ref
from
- - if @project.repository.branch_exists?(@pipeline.ref)
+ - if @pipeline.ref_exists?
= link_to @pipeline.ref, project_ref_path(@project, @pipeline.ref), class: "ref-name"
- else
%span.ref-name