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

29 lines
924 B
Text

- if policy(:super_attack).new?
.row
.col-md-12
.pull-right
= link_to 'New Super Attack', new_super_attack_path, class: 'btn btn-primary'
.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
- if policy(:super_attack).edit?
= link_to glyph('edit', classes: 'control-icon'), edit_super_attack_path(super_attack)
- if policy(:super_attack).destroy?
= link_to glyph('trash', classes: 'control-icon'), super_attack_path(super_attack), method: :delete
- if policy(:super_attack).new?
.row
.col-md-12
= link_to 'New Super Attack', new_super_attack_path, class: 'btn btn-primary'