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

30 lines
948 B
Text
Raw Normal View History

2015-10-08 15:18:21 -04:00
- if policy(:super_attack).new?
.row
.col-md-12
.pull-right
2015-10-09 08:17:29 -04:00
= link_to 'New Super Attack', new_admin_super_attack_path, class: 'btn btn-primary'
2015-10-06 13:55:12 -04:00
.row
.col-md-12
table.table.table-striped.table-hover
thead
tr
th Name
th Description
th Actions
tbody
- @super_attacks.each do |super_attack|
tr
td= super_attack.name
td= super_attack.description
td
2015-10-08 15:18:21 -04:00
- if policy(:super_attack).edit?
2015-10-09 08:17:29 -04:00
= link_to glyph('edit', classes: 'control-icon'), edit_admin_super_attack_path(super_attack)
2015-10-08 15:18:21 -04:00
- if policy(:super_attack).destroy?
2015-10-09 08:17:29 -04:00
= link_to glyph('trash', classes: 'control-icon'), admin_super_attack_path(super_attack), method: :delete
2015-10-06 13:55:12 -04:00
2015-10-08 15:18:21 -04:00
- if policy(:super_attack).new?
.row
.col-md-12
2015-10-09 08:17:29 -04:00
= link_to 'New Super Attack', new_admin_super_attack_path, class: 'btn btn-primary'