- content_for(:tertiary_navigation) do %nav.tabs %ul %li{class: ('active' if action_name == "index")} = link_to spina.admin_inquiries_path do Alle berichten %li{ class: ('active' if action_name == 'spam')} = link_to spina.spam_admin_inquiries_path do Spam .table-container %table.table %thead %tr %th{width: 200} Afzender %th Bericht %th{colspan: 2} %tbody - if @inquiries.present? - @inquiries.each do |inquiry| %tr %td %p %strong= inquiry.name %td %p= link_to inquiry.summary, spina.admin_inquiry_path(inquiry) %td.nowrap %small=l inquiry.created_at, format: '%e %B %Y %H:%M' %td.nowrap = link_to "Geen spam", spina.unmark_spam_admin_inquiry_path(inquiry), method: :patch, class: 'button button-link button-primary button-small', data: {icon: 'x'} = link_to "Verwijderen", spina.admin_inquiry_path(inquiry), method: :delete, class: 'button button-danger button-link button-small', data: {confirm: "Weet je zeker dat je het bericht van #{inquiry.name} definitief wilt verwijderen?"} - else %tr %td.align-center{colspan: 3} %em Er zijn geen berichten gemarkeerd als spam.