Commit 8b5877dc authored by Shinya Maeda's avatar Shinya Maeda

Use nil? for ref evaluation

parent ef61829b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
= pipeline_schedule.description = pipeline_schedule.description
%td.branch-name-cell %td.branch-name-cell
= icon('code-fork') = 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" = link_to pipeline_schedule.ref, project_ref_path(@project, pipeline_schedule.ref), class: "ref-name"
%td %td
- if pipeline_schedule.last_pipeline - if pipeline_schedule.last_pipeline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment