<%= 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] %>Username | Name | Steam ID | Age | <% if cuser and cuser.admin? %><% end %> | |
---|---|---|---|---|---|
<%= flag user.country %> | <%= link_to (h user.username), user %> | <%= h user.firstname %> <%=h user.lastname %> | <%= h user.steamid %> | <%= user.age %> | <% if cuser and cuser.admin? %><%= link_to edit_user_path(user) do %> <%= icon 'pencil' %> <% end %> <%= link_to user, confirm: "Proceed to delete?", method: :delete do %> <%= icon 'times' %> <% end %> | <% end %>