ensl.org/app/views/gathers/_running.html.erb
jamal aa0d0673b6 Change Gather style to volunteer captains
This will change the gather format to allow for players to volunteer to be captain / commander. The gather will not change from the running state until 2 commanders have volunteered. Once commanders have volunteered the gather will switch to the picking state. The voting state is no longer used.

Also, added a new sound alert that will be played when the gather is full but doesn't have 2 captains. This alert will loop every 10 seconds unless you're the commander. And changed the music to play once the gather switches to the picking state and only if the player doesn't have the gather page on focus.
2014-10-11 15:50:06 -04:00

34 lines
No EOL
888 B
Text

<div class="gather-columns">
<div class="data players">
<div class="contents">
<h4>Signed Up</h4>
<ul id="gatherers">
<% @gather.gatherers.each do |gatherer| %>
<li<% if gatherer.status > 0 %> class="away"<% end %>>
<%= flag gatherer.user.country %>
<%= namelink gatherer.user %>
<% if gatherer == @gather.captain1 or gatherer == @gather.captain2 %>
<span class="captain">
<%= icon('star') %>
</span>
<% end %>
<% if cuser and cuser.admin? %>
<%= link_to gatherer, method: :delete, class: 'delete' do %>
<%= icon 'times' %>
<% end %>
<% end %>
</li>
<% end %>
</ul>
</div>
</div>
<%= render partial: 'votes' %>
</div>
<%= render partial: 'status' %>