.container-fluid.bg_light .row .col-md-12 .page_header %h1 #{t('admin.actions.index.title', model_label_plural: 'Projetos')} .hr .row .col-md-12 .breadcrumb .row .col-md-12 %ul.nav.nav-tabs %li.nav-item = link_to '', class: 'nav-link active', method: :get do %i.fa.fa-list = t('admin.actions.index.menu').capitalize .row .col-md-12 .tab-content.list .tab-pane.fade.show.active %table.table.table-condensed.table-striped %thead %tr %th Id %th #{t('activerecord.attributes.section.name').titleize} %th #{t('activerecord.attributes.application_record.slug').titleize} %th #{t('activerecord.attributes.application_record.created_at').titleize} %th #{t('activerecord.attributes.application_record.updated_at').titleize} %th #{t('activerecord.attributes.section.description').titleize} %th %th %th %tbody - @sections.each do |section| %tr %td= section.id %td= section.name %td= link_to exhibit_section_path(section.slug), exhibit_section_path(section.slug) %td= l(section.created_at, format: :short) %td= l(section.updated_at, format: :short) %td= section.description %td - if section.published? = button_to unpublish_admin_section_path(section), method: :patch, data:{confirm: "Deseja mesmo despublicar #{section.name}"}, class: 'publish_button' do %i.fa.fa-eye-slash.fa-fw.fa-inverse - else = button_to publish_admin_section_path(section), method: :patch, data:{confirm: "Deseja mesmo publicar #{section.name}"}, class: 'publish_button' do %i.fa.fa-eye.fa-fw.fa-inverse %td = link_to edit_admin_section_path(section) do %i.fa.fa-pencil.fa-fw.fa-inverse