app/views/tramway/landing/blocks/templates/_full_page.html.haml in tramway-landing-1.2.12 vs app/views/tramway/landing/blocks/templates/_full_page.html.haml in tramway-landing-1.2.13

- old
+ new

@@ -9,9 +9,12 @@ %hr.hr-light %h4.white-text.my-4 = block.tagline - if defined?(buttons) - buttons.each do |button| - %button.btn.btn-outline-white.waves-effect.waves-light.header-buttons{ type: :button, data: { anchor: "##{button.link}" } } + - 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 } = button.title - else = yield