Skip to content

Commit

Permalink
fix: Look less ugly
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanB committed Oct 24, 2024
1 parent 13ba1ad commit 5e82fd2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions home/templates/home/user_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ <h5>{{user.username}}#{{user.discriminator}}</h5>
</div>

{% if elos_by_game %}
{% for game_mode, elo in elos_by_game.items %}
{% for game_type, game_modes in elos_by_game.items|groupby:"game_mode.game" %}
<div class="row">
<div class="col-12">
<h2 class="bg-dark text-white p-3">{{ game_mode.game }}</h2>
<h2 class="bg-dark text-white p-3">{{ game_type }}</h2>
<table class="table table-dark table-striped table-hover table-sm">
<thead>
<tr>
Expand All @@ -32,6 +32,7 @@ <h2 class="bg-dark text-white p-3">{{ game_mode.game }}</h2>
</tr>
</thead>
<tbody>
{% for game_mode, elo in game_modes %}
<tr>
<td>{{ game_mode.name }}</td>
{% if elo %}
Expand All @@ -41,6 +42,7 @@ <h2 class="bg-dark text-white p-3">{{ game_mode.game }}</h2>
<td colspan="2">Not Played</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
Expand Down

0 comments on commit 5e82fd2

Please sign in to comment.