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

17 lines
508 B
Text
Raw Normal View History

2015-10-08 15:18:21 -04:00
.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?
2015-10-09 08:17:29 -04:00
= link_to glyph('edit', classes: 'control-icon'), edit_admin_user_path(user)
2015-10-08 15:18:21 -04:00
- if policy(:user).destroy?
2015-10-09 08:17:29 -04:00
= link_to glyph('trash', classes: 'control-icon'), admin_user_path(user), method: :delete