summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-29 20:22:54 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-29 20:22:54 +0900
commitd94e1aad57d79d93d0add92aa1887c50ee2b27f2 (patch)
treeef1c41dccb4f107df36df9d7971c397b17e4b466
parent8b5877dcd021cdc3b2badf0523855b6172644507 (diff)
downloadgitlab-ce-d94e1aad57d79d93d0add92aa1887c50ee2b27f2.tar.gz
Use if pipeline_schedule.ref
-rw-r--r--app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml b/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
index 04fe5045890..7bde839e26f 100644
--- a/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
+++ b/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml
@@ -4,7 +4,7 @@
= pipeline_schedule.description
%td.branch-name-cell
= icon('code-fork')
- - unless pipeline_schedule.ref.nil?
+ - if pipeline_schedule.ref
= link_to pipeline_schedule.ref, project_ref_path(@project, pipeline_schedule.ref), class: "ref-name"
%td
- if pipeline_schedule.last_pipeline