25 lines
551 B
Plaintext
25 lines
551 B
Plaintext
<% content_for :secondary do %>
|
|
<ul class="list">
|
|
<li><%= link_to t(:new_user, :scope => :panel), new_panel_user_path, :class => 'button positive' %></li>
|
|
</ul>
|
|
<% end -%>
|
|
|
|
<h1>Users panel</h1>
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Email</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
|
|
<% @users.each do |user| %>
|
|
<tr>
|
|
<td><%#= user.name %></td>
|
|
<td><%= user.email %></td>
|
|
<td><%= link_to 'Edit', edit_panel_user_path(user) %> | <%= link_to 'Destroy', panel_user_path(user), :method => :delete %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|