diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-26 21:46:01 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-29 20:02:09 +0900 |
commit | 8b5877dcd021cdc3b2badf0523855b6172644507 (patch) | |
tree | b65ff3cf718b464f448ee3f83032d960c5d8cf27 | |
parent | ef61829b586ea2581d37d7c3ca0db60e01c8aec6 (diff) | |
download | gitlab-ce-8b5877dcd021cdc3b2badf0523855b6172644507.tar.gz |
Use nil? for ref evaluation
-rw-r--r-- | app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml | 2 |
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 |