25 lines
770 B
Plaintext
25 lines
770 B
Plaintext
<h1>Users</h1>
|
|
<hr>
|
|
<p>To edit your own user, use the Profile Option. To change your admin password, visit the <%= link_to "admin profile edit page", edit_admin_registration_path %>.</p>
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Email</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @users.each do |user| %>
|
|
<% next if user.is_admin? %>
|
|
<% next if user.equal?(current_user) %>
|
|
<tr>
|
|
<td><%= link_to user.email, account_path(user) %></td>
|
|
<td><%= link_to 'Edit', edit_account_path(user) %></td>
|
|
<td><%= link_to 'Destroy', account_path(user), method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<%= link_to 'New user', new_account_path %>
|