Sha256: 10659b17d41f481e5e5e8c2949c797f6d7419779d138cb90eb72770c2a7a628b
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
!!! %html %head = render 'layouts/tramway/landing/head' %body{ class: @application&.name } - @tools.each do |tool| - if tool.with_body_fragment? = render "layouts/tramway/landing/tools/#{tool.title}_body", account_id: tool.account_id = stylesheet_link_tag 'https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.4.5/css/mdb.min.css' = javascript_include_tag 'https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.4.5/js/mdb.js' = javascript_include_tag 'https://cdn.rawgit.com/CezarLuiz0/anchor.js/master/dist/anchor.min.js' = render 'layouts/tramway/landing/navbar' - if @blocks&.any? - headers = @blocks.select { |block| block.model.header? } - footers = @blocks.select { |block| block.model.footer? } - other_blocks = @blocks - headers - footers - header_block = headers.first - if header_block.present? = render "tramway/landing/blocks/block_types/#{header_block.model.block_type.underscore}", block: header_block %main.mt-5 - if other_blocks.any? .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 - if block_given? .container-fluid = yield - 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-landing-3.3 | app/views/layouts/tramway/landing/application.html.haml |