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

17 lines
496 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?
= 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