- IRC:
- <%=h @team.irc %>
- Web:
- <%=h @team.web %>
- Tag:
- <%=h @team.tag %>
- Country:
- <%=h @team.country %>
- Founder:
- <%= namelink @team.founder %>
- Comment:
- <%=h @team.comment %>
<% if @team.recruiting %>
- Recruiting:
- <%=h @team.recruiting %>
<% end %>
<%= link_to "Send a message", { controller: "messages", action: "new", id: "Team", id2: @team }, { class: 'button tiny' } %>
<% if @team.teamers.active.ordered.distinct.length > 0 %>
Current Members
<%= render partial: "teamers/list", locals: { teamers: @team.teamers.active.ordered.distinct, blacklist: false, comment: true } %>
<% end %>
<% if @team.teamers.past.distinct.length > 0 %>
Past Members
<%= render partial: "teamers/list", locals: { teamers: @team.teamers.past.distinct, blacklist: @team.teamers.active.ordered.distinct, comment: false } %>
<% end %>
<% @team.contesters.chronological.each do |contester| %>
<% next if Match.finished.ordered.of_contester(contester).count == 0 %>
<%= link_to contester.contest, contester.contest, :name => "contest_#{contester.contest.id}" %>
<%= render partial: "matches/list", locals: { matches: Match.finished.ordered.of_contester(contester), friendly: contester.team, contest: false } %>
<% end %>
- Matches:
- <%= @team.matches_finished.count %> played / <%= @team.matches.count %> total
- Won:
- <%= @team.matches_won.count %> (<%= 100.0*@team.matches_won.count/@team.matches_finished.count %> %)
- Lost:
- <%= @team.matches_lost.count %> (<%= 100.0*@team.matches_lost.count/@team.matches_finished.count %> %)
- Draw:
- <%= @team.matches_draw.count %> (<%= 100.0*@team.matches_draw.count/@team.matches_finished.count %> %)