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

30 lines
940 B
Text
Raw Normal View History

2015-10-08 15:18:21 -04:00
- if policy(:passive_skill).new?
.row
.col-md-12
.pull-right
= link_to 'New Passive Skill', new_passive_skill_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
- @passive_skills.each do |passive_skill|
tr
td= passive_skill.name
td= passive_skill.description
td
2015-10-08 15:18:21 -04:00
- if policy(:passive_skill).edit?
= link_to glyph('edit', classes: 'control-icon'), edit_passive_skill_path(passive_skill)
- if policy(:passive_skill).destroy?
= link_to glyph('trash', classes: 'control-icon'), passive_skill_path(passive_skill), method: :delete
2015-10-06 13:55:12 -04:00
2015-10-08 15:18:21 -04:00
- if policy(:passive_skill).new?
.row
.col-md-12
= link_to 'New Passive Skill', new_passive_skill_path, class: 'btn btn-primary'