">
<% for column in User.content_columns %>
<% if !@hidden_columns.index(column.name) %>
<%=h user.send(column.name) %> |
<% end %>
<% end %>
<%= link_to 'Show', :action => 'show', :id => user %> |
<%= link_to 'Edit', :action => 'edit', :id => user %> |
<%= link_to 'Destroy', { :action => 'destroy', :id => user }, :confirm => 'Are you sure?', :method => :post %> |
<% if Configuration.multicontests? %>
<% user.contests.each do |contest| %>
<%= contest.name %> [<%= link_to 'x', :action => 'remove_from_contest', :id => user.id, :contest_id => contest.id %>]
<% end %>
|
<% @contests.each do |contest| %>
<% if not user.contests.all.find {|c| c.id==contest.id } %>
<%= contest.name %> [<%= link_to '+', :action => 'add_to_contest', :id => user.id, :contest_id => contest.id %>]
<% end %>
<% end %>
|
<% end %>
<% end %>