mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 05:21:19 +00:00
32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
<% captain = team == 1 ? @gather.captain1 : @gather.captain2 %>
|
|
<% pick = false %>
|
|
|
|
<h2 class="center">
|
|
<%= if team.nil? then "Lobby" else team == 1 ? "Marines" : "Aliens" end %>
|
|
</h2>
|
|
|
|
<%= form_tag("/gathers/pick/#{@gather.id}") do %>
|
|
|
|
<table id="gatherersTable">
|
|
<% @gather.gatherers.ordered.team(team).each do |gatherer| %>
|
|
<tr height="10">
|
|
<% if @gatherer and gatherer.can_update? cuser, {:team => @gatherer.team} %>
|
|
<% pick = true %>
|
|
<td><%= radio_button_tag :player, gatherer.id %><%= flag gatherer.user.country %></td>
|
|
<td><%= namelink gatherer.user %></td>
|
|
<% else %>
|
|
<td><%= flag(gatherer.user.country) if gatherer.user && gatherer.user.country %></td>
|
|
<% if gatherer == captain and gatherer.team == gatherer.gather.turn %>
|
|
<td>»
|
|
<% else %>
|
|
<td>
|
|
<% end %>
|
|
<%= namelink gatherer.user %><%= " (C)" if gatherer == captain %></td>
|
|
<% end %>
|
|
</tr>
|
|
<% end %>
|
|
<% if pick %>
|
|
>> <a href="javascript:;" class="submit">Pick</a>
|
|
<% end %>
|
|
</table>
|
|
<% end %>
|