16 lines
496 B
Text
16 lines
496 B
Text
.row
|
|
.col-md-12
|
|
table.table.table-striped.table-hover
|
|
thead
|
|
tr
|
|
th Nickname
|
|
th Actions
|
|
tbody
|
|
- @users.each do |user|
|
|
tr
|
|
td= user.nickname
|
|
td
|
|
- if policy(:user).edit?
|
|
= link_to glyph('edit', classes: 'control-icon'), edit_user_path(user)
|
|
- if policy(:user).destroy?
|
|
= link_to glyph('trash', classes: 'control-icon'), user_path(user), method: :delete
|