mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-30 14:31:12 +00:00
1477aac4f1
Improved layout Improved form styling Fixes issues with firefox Added menu icons
38 lines
1.1 KiB
Text
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>
|