app/views/layouts/tramway/landing/application.html.haml in tramway-landing-2.0.0.1 vs app/views/layouts/tramway/landing/application.html.haml in tramway-landing-2.0.0.2

- old
+ new

@@ -18,23 +18,23 @@ = javascript_include_tag 'https://cdn.rawgit.com/CezarLuiz0/anchor.js/master/dist/anchor.min.js' - if @blocks&.any? - headers = @blocks.select { |block| block.model.block_type&.header? } - footers = @blocks.select { |block| block.model.block_type&.footer? } - other_blocks = @blocks - headers - footers - -# FIXME - if headers.first.present? = render "tramway/landing/blocks/block_types/header", block: headers.first + %main.mt-5 .container - other_blocks.each_with_index do |block, index| = render "tramway/landing/blocks/block_types/#{block.model.block_type}", block: block - if index < other_blocks.count - 1 %hr .container-fluid = yield - - else - .container-fluid - = yield - - if @blocks&.any? + - footers = @blocks.select { |block| block.model.block_type&.footer? } - if footers.first.present? = render "tramway/landing/blocks/block_types/footer", block: footers.first + - else + .container-fluid + = yield