better user listing

This commit is contained in:
jomo
2014-06-29 12:21:46 +02:00
parent abcce299fb
commit 3e0e5878e6
2 changed files with 10 additions and 2 deletions

View File

@@ -1,9 +1,11 @@
<% if params[:role] %>
<h1><%= title "All '#{params[:role]}' Users" %></h1>
<h1><%= title "All '#{params[:role]}' role users" %></h1>
<%= link_to "show all", users_path %>
<% else %>
<h1><%= title "All Users" %></h1>
<% end %>
<p>User count: <%= @users.length %></p>
<div id="userlist">
<% @users.each do |u| %>
<div class="list-user">