From 56c667bc1edbe5777ae8825cfecb9b1efe3c6397 Mon Sep 17 00:00:00 2001 From: Brennan Bibic Date: Thu, 24 Oct 2024 16:37:58 -0400 Subject: [PATCH] Try table view instead of picture cards --- home/templates/home/user_profile.html | 82 ++++++++++++--------------- 1 file changed, 35 insertions(+), 47 deletions(-) diff --git a/home/templates/home/user_profile.html b/home/templates/home/user_profile.html index b0db507..8d83a2a 100644 --- a/home/templates/home/user_profile.html +++ b/home/templates/home/user_profile.html @@ -59,54 +59,42 @@

Highscores

{% if games %} {% for game_name, game in games.items %}
-
-

- {{game_name}} -

-

{{game.overall}}

-
- - {% for entry in game.leaderboards %} -
-
-

- {{entry.leaderboard.name}} -

-

{{entry.score|default:"No Score"}}

- {% if entry.score %} - {% if "youtube" in entry.source or "streamable" in entry.source %} - - {% else %} - {% if "https://i.imgur.com/bUUfB8c.png" not in entry.source %} - {{entry.leaderboard.name}} score screenshot +
+

{{ game_name }}

+

Total Score: {{game.overall}}

+ + + + + + + + + + + {% for entry in game.leaderboards %} + + + + + + + {% endfor %} + +
Robot NameScoreTime SetMedia Link
{{ entry.leaderboard.name }}{{ entry.score|default:"No Score" }}{{ entry.source|default:"N/A" }} + {% if entry.score %} + {% if "youtube" in entry.source or "streamable" in entry.source %} + Video + {% else %} + {% if "https://i.imgur.com/bUUfB8c.png" not in entry.source %} + Image + {% endif %} + {% endif %} + {% else %} + N/A {% endif %} - {% endif %} - {% endif %} - - - {% endfor %} +
+
{% endfor %} {% endif %}