Sha256: c3d7137d6e9b29a91633c78d6b1fa11dd9886500216be90a9f772a27edcecb09

Contents?: true

Size: 1.28 KB

Versions: 136

Compression:

Stored size: 1.28 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?
          -# FIXME
          .card.link{ onclick: "window.location.href = '#{item.path}';" }
            .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
                = strip_tags 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
              - if item.description
                %p.card-text
                  = item.description
              - if item.button.present?
                = link_to item.button.text, item.button.url, class: 'btn btn-primary'

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
tramway-landing-3.1.1.7 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.1.6 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.1.5 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.1.4 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.1.3 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.1.2 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.1.1 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.1 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.0.6 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.0.5 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.0.4 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.0.3 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.0.2 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1.0.1 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.1 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.0.3 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.0.2.4 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.0.2.3 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.0.2.2 app/views/tramway/landing/blocks/block_types/_cards.html.haml
tramway-landing-3.0.2.1 app/views/tramway/landing/blocks/block_types/_cards.html.haml