Listing Users

<%= User.lately.count %> players have signed in within the past 30 days.

<%= link_to 'Show them', params.merge(filter: 'lately'), class: 'button' %>


Search for users by name or Steam ID:

<%= form_tag(users_path, method: 'get', class: 'square search') do %> <%= hidden_field_tag :direction, params[:direction] %> <%= hidden_field_tag :sort, params[:sort] %>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag "Search", name: nil %>
<% end %> <%= will_paginate @users %> <% if cuser and cuser.admin? %> <% end %> <% @users.each do |user| %> <% if cuser and cuser.admin? %> <% end %> <% end %>
Username Name Steam ID Age
<%= flag user.country %> <%= link_to (h user.username), user %> <%= h user.firstname %> <%=h user.lastname %> <%= h user.steamid %> <%= user.age %> <%= link_to edit_user_path(user) do %> <%= icon 'pencil' %> <% end %> <%= link_to user, confirm: "Proceed to delete?", method: :delete do %> <%= icon 'times' %> <% end %>
<%= will_paginate @users %>