Sha256: d4e9804f2c2b1d9c213c7c83d074965c9b6ef12f35fc859a137994074eb8f4de
Contents?: true
Size: 665 Bytes
Versions: 18
Compression:
Stored size: 665 Bytes
Contents
%h1= resource_class.model_name.human(count: :other) .row - @collection.each do |picture_gallery| .col-4 - image_options = if picture_gallery.picture_details.first.try(:asset).present? - { src: main_app.url_for(picture_gallery.picture_details.first.asset.variant(Cmor::Galleries::Configuration.thumbnail_variant_options)) } - else - {} .card.text-center.border-0 %img.card-img-top{ image_options } .card-body %h5.card-title = picture_gallery.name %p.card-text = picture_gallery.description = link_to(t('.show'), picture_gallery, class: 'btn btn-primary')
Version data entries
18 entries across 18 versions & 1 rubygems