Skip to content

Commit

Permalink
Revert back to functional table
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanB committed Oct 24, 2024
1 parent 9e1737b commit b36ea21
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions home/templates/home/user_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,33 @@ <h5>{{user.username}}#{{user.discriminator}}</h5>
</div>

{% if elos_by_game %}
<table class="table table-dark table-striped table-hover table-sm">
{% for game_type, modes in elos_by_game.items %}
<thead>
<tr>
<th colspan="3" scope="colgroup" class="bg-dark text-white text-center">{{ game_type }}</th>
</tr>
<tr>
<th scope="col">Mode</th>
<th scope="col">ELO</th>
<th scope="col">W-L-T</th>
</tr>
</thead>
<tbody>
{% for game_mode, player_elo in modes.items %}
<tr>
<td>{{ game_mode.name }}</td>
{% if player_elo %}
<td>{{ player_elo.elo|floatformat:1 }}</td>
<td>{{ player_elo.matches_won }}-{{ player_elo.matches_lost }}-{{ player_elo.matches_drawn }}</td>
{% else %}
<td colspan="2">Not Played</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
{% endfor %}
</table>
{% for game_mode, elo in elos_by_game.items %}
<div class="row">
<div class="col-12">
<h2 class="bg-dark text-white p-3">{{ game_mode.game }}</h2>
<table class="table table-dark table-striped table-hover table-sm">
<thead>
<tr>
<th>Mode</th>
<th>ELO</th>
<th>W-L-T</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ game_mode.name }}</td>
{% if elo %}
<td>{{ elo.elo|floatformat:1 }}</td>
<td>{{ elo.matches_won }}-{{ elo.matches_lost }}-{{ elo.matches_drawn }}</td>
{% else %}
<td colspan="2">Not Played</td>
{% endif %}
</tr>
</tbody>
</table>
</div>
</div>
{% endfor %}
{% endif %}

<div class="row">
Expand Down

0 comments on commit b36ea21

Please sign in to comment.