This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2010-03-04 08:33:26 +00:00
|
|
|
<% 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>
|
2010-03-04 09:11:18 +00:00
|
|
|
<th>Attrs</th>
|
|
|
|
<th>Name</th>
|
2010-03-04 08:33:26 +00:00
|
|
|
<th>Email</th>
|
|
|
|
<th>Action</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @users.each do |user| %>
|
|
|
|
<tr>
|
2010-03-04 09:11:18 +00:00
|
|
|
<td><%= user.use_attributes.join(",") %></td>
|
2010-03-08 09:14:59 +00:00
|
|
|
<td><%= user.name %></td>
|
2010-03-04 08:33:26 +00:00
|
|
|
<td><%= user.email %></td>
|
2010-03-04 09:11:18 +00:00
|
|
|
<td>
|
|
|
|
<%= link_to 'Show', panel_user_path(user) %>
|
|
|
|
<%= link_to 'Edit', edit_panel_user_path(user) %> |
|
|
|
|
<%= link_to 'Destroy', panel_user_path(user), :method => :delete %></td>
|
2010-03-04 08:33:26 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
|