18 lines
437 B
Plaintext
18 lines
437 B
Plaintext
<table cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<th>User</th>
|
|
<th>Email</th>
|
|
<th>Role</th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
<% users.each do |user| %>
|
|
<tr>
|
|
<td><%= link_to user.name, admin_user_path(user.to_i) %></td>
|
|
<td><%= mail_to(user.email) %></td>
|
|
<td><%= user.role %></td>
|
|
<td><%= link_to 'edit', admin_edit_user_path(user.to_i), { class: 'btn tertiary-btn' } %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|