summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-26 21:46:01 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-29 20:02:09 +0900
commit8b5877dcd021cdc3b2badf0523855b6172644507 (patch)
treeb65ff3cf718b464f448ee3f83032d960c5d8cf27
parentef61829b586ea2581d37d7c3ca0db60e01c8aec6 (diff)
downloadgitlab-ce-8b5877dcd021cdc3b2badf0523855b6172644507.tar.gz
Use nil? for ref evaluation
-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 5a2b7f5d177..04fe5045890 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')
- - if pipeline_schedule.ref.present?
+ - unless pipeline_schedule.ref.nil?
= link_to pipeline_schedule.ref, project_ref_path(@project, pipeline_schedule.ref), class: "ref-name"
%td
- if pipeline_schedule.last_pipeline