.cardGeneric - if defined?(content) && content.present? = link_to exhibit_path(content) do .card{ class: content.css_class + card_css_class(content) } - if content.image.present? = image_tag content.image_url(:thumb), alt: content.title, title: content.title, class: 'card-img-top mx-auto mx-md-0 img-fluid' .card-body %h2.card-title{ :style => "word-break: break-word;"}= content.title - if content.title_summary.present? %p.card-text= content.title_summary - if search_context %div %footer.blockquote-footer - if content.type.present? %cite publicado em #{t "activerecord.models.#{content.type.underscore}.one"} .line-bottom