ensl.org/app/views/teamers/_list.html.erb

31 lines
938 B
Text
Raw Normal View History

<table id="members" class="<%= 'short' if !comment %> striped">
<tr>
2014-04-13 11:16:51 +00:00
<th class="country"></th>
<th class="member">Member</th>
<th class="steamid">SteamID</th>
<th class="rank">Rank</th>
<% if comment %>
2014-04-13 11:16:51 +00:00
<th class="note">Comment</th>
<% end %>
2014-04-13 11:16:51 +00:00
<th class="joined">Joined</th>
</tr>
<% teamers.each do |member| %>
2014-04-13 11:16:51 +00:00
<% next if blacklist and blacklist.exists? user_id: member.user_id %>
<% next if member.user.nil? %>
2014-04-13 11:16:51 +00:00
<tr>
<td><%= flag member.user.country %></td>
<td><%= namelink member.user %></td>
2014-04-13 11:16:51 +00:00
<td><%=h member.user.steamid %></td>
<% if member.rank == Teamer::RANK_REMOVED %>
<td>Ex-Member</td>
<% else %>
<td><%= member.ranks[member.rank] %></td>
<% end %>
<% if comment %>
2014-04-13 11:16:51 +00:00
<td><%=h member.comment %></td>
<% end %>
2014-04-13 11:16:51 +00:00
<td class="joined"><%= shortdate member.created_at %></td>
</tr>
<% end %>
</table>