app/views/tramway/landing/blocks/templates/_full_page.html.haml in tramway-landing-1.8.1 vs app/views/tramway/landing/blocks/templates/_full_page.html.haml in tramway-landing-1.8.1.1
- old
+ new
@@ -7,10 +7,10 @@
%h2.display-3.font-bold.white-text.mb-2
= block.title
%hr.hr-light
%h4.white-text.my-4
= block.tagline
- - if defined?(buttons)
+ - if defined?(buttons) && buttons&.any?
- buttons.each do |button|
- data_obj = {}
- data_obj = data_obj.merge(href: button.link) if button.try :link
- data_obj = data_obj.merge(anchor: button.anchor) if button.try :anchor
%button.btn.btn-outline-white.waves-effect.waves-light.header-buttons.link{ type: :button, data: data_obj }