25 lines
684 B
Plaintext
25 lines
684 B
Plaintext
<h1>Users</h1>
|
|
<hr>
|
|
<p>To edit your own user, use the Profile Option.</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 unless Rails.env.production? %>
|