ensl.org/app/views/teams/_list.html.erb
Luke Barratt 6f56bf81fd Removed fixed topbar
Improved layout
Improved form styling
Fixes issues with firefox
Added menu icons
2014-04-19 02:12:02 +01:00

38 lines
1.1 KiB
Text

<table class="striped">
<tr>
<th class="country"></th>
<th class="name">Name</th>
<th class="irc">IRC</th>
<th class="members">Members</th>
<% if cuser and cuser.admin? %>
<th class="actions"></th>
<% end %>
</tr>
<% for team in teams %>
<% if team.teamers_num > 0 %>
<tr>
<td><%= flag team.country %></td>
<td><%= namelink team %></td>
<td><%= h team.irc if team.irc %></td>
<td><%= h team.teamers_num %></td>
<% if cuser and cuser.admin? %>
<td class="actions">
<%= link_to edit_team_path(team) do %>
<%= icon 'pencil' %>
<% end %>
<% if team.active %>
<%= link_to team, confirm: 'Are you sure?', method: :delete do %>
<%= icon 'times' %>
<% end %>
<% else %>
<%= link_to action: "recover", id: team do %>
<%= icon 'save' %>
<% end %>
<% end %>
</td>
<% end %>
</tr>
<% end %>
<% end %>
</table>