.container-fluid.bg_light .row .col-md-12 .page_header %h1 #{t('admin.actions.index.title', model_label_plural: 'Páginas Iniciais')} .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 %nav.navbar.navbar-light.bg-light.filter = link_to t('admin.misc.add_new'), new_admin_home_path, class: 'btn btn-default submit_buttons' %table.table.table-condensed.table-striped %thead %tr %th #{t('activerecord.attributes.home.active').titleize} %th #{t('activerecord.attributes.home.title').titleize} %th #{t('activerecord.attributes.application_record.created_at').titleize} %th %th %th %tbody - @homes.each do |home| %tr %td= home.active ? 'Sim' : 'Não' %td= home.title %td= home.created_at %td - if !home.active? = button_to activate_admin_home_path(home), method: :patch, data:{confirm: "Deseja mesmo ativar?"}, class: 'publish_button' do %i.fa.fa-eye.fa-fw.fa-inverse - else = button_to deactivate_admin_home_path(home), method: :patch, data:{confirm: "Deseja mesmo desativar?"}, class: 'publish_button' do %i.fa.fa-eye-slash.fa-fw.fa-inverse %td = link_to edit_admin_home_path(home) do %i.fa.fa-pencil.fa-fw.fa-inverse = link_to "/home/#{home.slug}", target: :blank do %i.fa.fa-camera.fa-inverse %td = link_to admin_home_path(home), method: :delete, data:{confirm: "Deseja mesmo excluir"} do %i.fa.fa-times.fa-fw.fa-inverse