Listing Users

<%= 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 %> <% 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 %>