Sha256: ac586c6951f176f1c8a81f3c1ce2aa0aba8b9d156516572590fb1b4febad2817

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

.container.text-center{ id: block.anchor }
  %h2.mb-4.font-weight-bold
    = block.title
  %p.grey-text
    = block.description
  .row
    -# FIXME bad guy mode ON
    - eval("@collection_#{block.anchor}")&.each do |item|
      .col-lg-4.col-md-12.mb-4
        - if item.path.present?
          = link_to item.path do
            .card.link
              .view.overlay.hm-white-slight
                = image_tag item.image, class: 'img-fluid'
              = link_to '#' do
                .mask
              .card-body
                %h4.card-title
                  = item.title
                %p.card-text
                  = item.description
                - if item.button.present?
                  = link_to item.button.text, item.button.url, class: 'btn btn-primary'
        - else
          .card
            .view.overlay.hm-white-slight
              = image_tag item.image, class: 'img-fluid'
            = link_to '#' do
              .mask
            .card-body
              %h4.card-title
                = item.title
              %p.card-text
                = item.description
              - if item.button.present?
                = link_to item.button.text, item.button.url, class: 'btn btn-primary'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tramway-landing-1.1.1 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-1.1 app/views/tramway/landing/blocks/block_types/_cards.html.haml