29 lines
964 B
Text
29 lines
964 B
Text
- if policy(:passive_skill).new?
|
|
.row
|
|
.col-md-12
|
|
.pull-right
|
|
= link_to 'New Passive Skill', new_admin_passive_skill_path, class: 'btn btn-primary'
|
|
|
|
.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
|
|
- if policy(:passive_skill).edit?
|
|
= link_to glyph('edit', classes: 'control-icon'), edit_admin_passive_skill_path(passive_skill)
|
|
- if policy(:passive_skill).destroy?
|
|
= link_to glyph('trash', classes: 'control-icon'), admin_passive_skill_path(passive_skill), method: :delete
|
|
|
|
- if policy(:passive_skill).new?
|
|
.row
|
|
.col-md-12
|
|
= link_to 'New Passive Skill', new_admin_passive_skill_path, class: 'btn btn-primary'
|