#publicacaoDetalhe .mb-3= render partial: '/pages/breadcrumbs' .container.bgWhite %header .row.align-items-top.border-left .col-sm-12 - if content.respond_to?(:image) && content.image.present? .col-sm-12.col-md-9 %figure = image_tag content.image_url, :alt => content.title, :class => 'figure-img img-fluid', :title => content.title .col-7.col-md-3.badge - if content.respond_to?(:sections) && content.sections.present? = render '/contents/assets/badget_pilars', sections: content.sections .col-12.ml-4.mb-3 %h1= content.title .container-fluid._publicacao_infos .container %summary .row.align-items-center.ml-4 .col-sm-12.px-0.py-4.align-items-center %dl.dt-inline - if content.respond_to?(:author) && content.author.present? %dt= 'Autor: '.html_safe %dd= content.publication_info.author - if content.respond_to?(:subject) && content.subject.present? %dt= 'Assunto: '.html_safe %dd= content.publication_info.subject - if content.respond_to?(:pages) && content.pages.present? %dt= 'Páginas: '.html_safe %dd= content.publication_info.pages - if content.respond_to?(:publisher) && content.publisher.present? %dt= 'Editoria: '.html_safe %dd= content.publication_info.publisher - if content.respond_to?(:details_file) && content.details_file.present? %p = link_to 'Download do arquivo', content.details_file.to_s, class: 'btn btn-primary mb-3 mb-sm-0', target: '_blank', :onclick => "gtag('event', 'download', {'event_category':'publicacoes', 'event_label':'#{File.basename(content.details_file.to_s)}'});" - if content.respond_to?(:link) && content.link.present? %a.btn.btn-primary{ 'href' => content.publication_info.link, :target => '_blank', :onclick => "gtag('event', 'visita-site', {'event_category':'publicacoes', 'event_label':'#{File.basename(content.publication_info.link)}'});" } Site da publicação .container.pt-5.bgWhite %article .row .col-1 .line-top .col-11 .content = content.content.html_safe .container-fluid.bgWhite .container .row .col-12 %hr.mt-4.mb-5 .col-sm-12.col-md-6 = render "/contents/assets/social_bar", content: content .col-sm-12.col-md-6.text-md-right.my-4.my-md-1 = link_to 'Voltar para ' + t("activerecord.models.#{content.type.underscore}.other"), publications_path