%h1= resource_class.model_name.human(count: :other) .row - @collection.each do |picture_gallery| .col-4 - image_options = if picture_gallery.assets.any? - { src: main_app.url_for(picture_gallery.assets.first) } - else - {} = bootstrap_card(image_options: image_options, additional_css_classes: 'text-center border-0') do .card-body %h5.card-title = picture_gallery.name %p.card-text = picture_gallery.description = link_to(t('.show'), picture_gallery, class: 'btn btn-primary')