<% vote_maps, vote_servers = false %>

Server voting

<% @gather.gather_servers.ordered.each do |server| %> <% end %>
<%= if server.votes then server.votes else "0" end%> <% if server.real_votes.build(:user => cuser).can_create? cuser %> <%= link_to shorten(server, 15), :controller => "votes", :action => "create", :vote => {:votable_id => server.id, :votable_type => "GatherServer"}, :method => "post" %> <% vote_servers = true else %> <%= shorten server, 15 %> <% end %>
<% if vote_servers %>

Click to vote.

<%= link_to "Moar servers", :controller => :servers %>

<% end %>

Vote Maps

<% @gather.gather_maps.ordered.each do |map| %> <% end %>
<%= map.votes %> <% if map.real_votes.build(:user => cuser).can_create? cuser %> <%= link_to shorten(map, 15), :controller => "votes", :action => "create", :vote => {:votable_id => map.id, :votable_type => "GatherMap"}, :method => "post" %> <% vote_maps = true else %> <%= shorten map, 15 %> <% end %>
<% if vote_maps %>

Click to vote.

<% end %>