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 %>
|
Username |
Name |
Steam ID |
Age |
<% if cuser and cuser.admin? %>
|
<% end %>
<% @users.each do |user| %>
<%= 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 %>
<% end %>
<%= will_paginate @users %>