Sha256: f60cf5e55d42eb21999330d1994c45741483cf5641c5161a3bffeefcb1141868

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

.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.inbox_show_admin_inquiry_path(inquiry)

            %td.nowrap
              = l inquiry.created_at, format: '%e %B %Y %H:%M'

            %td.nowrap
              = link_to "Bericht markeren als gelezen", spina.mark_as_read_admin_inquiry_path(inquiry), method: :patch, class: 'button button-link button-small', data: {icon: 'k'}
              = 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 <strong>#{inquiry.name}</strong> definitief wilt verwijderen?"}
      
      - else
        %tr
          %td.align-center{colspan: 3}
            %em Inbox is leeg.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spina-0.6.12 app/views/spina/admin/inquiries/inbox.html.haml
spina-0.6.11 app/views/spina/admin/inquiries/inbox.html.haml