Sha256: 0e4ea9752356d007e752d2be41367ac511f9e2a008932997746ca4e982e8f40d

Contents?: true

Size: 744 Bytes

Versions: 4

Compression:

Stored size: 744 Bytes

Contents

h1 Listing reports
= authz_link_to 'Create New Report', new_report_path, { class: 'button' }, skip_scoping: true

table
  thead
    tr
      th ID
      th User
      th Clearance
      th City
      th Title
      th Body
      th
      th
      th

  tbody
    - @reports.each do |report|
      tr
        td = report.id
        td = report.user.email
        td = report.clearance.try :name
        td = report.city.try :name
        td = report.title
        td = report.body.truncate(100)
        td = authz_link_to 'Show', report, using: report
        td = authz_link_to 'Edit', edit_report_path(report), using: report
        td = authz_link_to 'Destroy', report, { data: { confirm: 'Are you sure?' }, method: :delete }, using: report

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
authz-0.0.1.alpha4 spec/dummy/app/views/reports/index.html.slim
authz-0.0.1.alpha3 spec/dummy/app/views/reports/index.html.slim
authz-0.0.1.alpha2 spec/dummy/app/views/reports/index.html.slim
authz-0.0.1.alpha spec/dummy/app/views/reports/index.html.slim