1
0
Fork 0
dokkan-data-rails/app/views/admin/evidences/index.html.slim

27 lines
822 B
Text
Raw Permalink Normal View History

2015-10-14 11:24:15 -04:00
- if policy(:evidence).new?
.row
.col-md-12
.pull-right
= link_to 'New Evidence', new_admin_evidence_path, class: 'btn btn-primary'
.row
.col-md-12
table.table.table-striped.table-hover
thead
tr
th Screenshot
th Actions
tbody
- @evidences.each do |evidence|
tr
td= image_tag evidence.screenshot.url(:thumb)
td
= link_to glyph('eye-open', classes: 'control-icon'), evidence.screenshot.url(:original, false)
- if policy(:evidence).destroy?
= link_to glyph('trash', classes: 'control-icon'), admin_evidence_path(evidence), method: :delete
- if policy(:evidence).new?
.row
.col-md-12
= link_to 'New Evidence', new_admin_evidence_path, class: 'btn btn-primary'