f88c1f5a7f
Implement foundational UI components including navigation bar, CSS styling, and improved rankings page. Changes: - Add navigation bar with links to Rankings, Profile, Schedule, Admin - Add comprehensive CSS styling for tables, forms, buttons, alerts - Improve rankings page with profile links - Support conditional navigation based on authentication status
33 lines
738 B
Plaintext
33 lines
738 B
Plaintext
<h1>Player Rankings</h1>
|
|
|
|
<% if players.any? %>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Rank</th>
|
|
<th>Player</th>
|
|
<th>Elo Rating</th>
|
|
<th>Original Rating</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% players.each_with_index do |player, index| %>
|
|
<tr>
|
|
<td><%= index + 1 %></td>
|
|
<td><%= player.name %></td>
|
|
<td><strong><%= player.current_elo %></strong></td>
|
|
<td><%= player.rating %></td>
|
|
<td>
|
|
<a href="/players/<%= player.id %>/profile">Profile</a>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<% else %>
|
|
<p>No players found.</p>
|
|
<% end %>
|
|
|
|
<p><a href="/admin/players">Admin</a></p>
|