app/views/admin/roles/users/index.html.erb
<%- add :about, "Role: #{@role_name.pluralize.humanize}" %>
<%- add :menu, "Back to roles management" => admin_roles_path if can?(:administer, Role) %>
<%- add :menu, "Back to Admin Panel" => admin_path if can?(:administer, Sequencescape) %>
<%= page_title 'Users', @role_name.pluralize.upcase %>
<div class="info" id='users'>
<table class='sortable table table-striped'>
<thead>
<tr>
<th>Full Name</th>
<th>Login</th>
<th> </th>
<th> </th>
</tr>
</thead>
<tbody>
<% @users.find_each do |user| %>
<tr>
<td><%= user.name.humanize %></td>
<td><%= user.login %></td>
<td><%= link_to "Show profile", admin_users_path(user) %></td>
<td><%= link_to "Edit profile", edit_admin_user_path(user) %></td>
</tr>
<% end %>
</tbody>
</table>
</div>