diff options
author | Linnnus <[email protected]> | 2024-05-02 14:52:08 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-05-02 14:54:37 +0200 |
commit | 8752590f7c1bebb5ff85725b60f9644213a8e569 (patch) | |
tree | abd44cfb12b34166561256a94fb73963543abda5 /views | |
parent | 1eea06cb7fca2699160b9d8805c231c297080304 (diff) |
Use actual data for leaderboard
e407f10 and ce74a2c added a basic skelton. This patch refines some of
the styling and actually pulls data from the database.
Diffstat (limited to 'views')
-rw-r--r-- | views/leaderboards.html | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/views/leaderboards.html b/views/leaderboards.html index 2e64c55..44bc374 100644 --- a/views/leaderboards.html +++ b/views/leaderboards.html @@ -5,22 +5,26 @@ {% endblock %} {% block content %} - <div class="wrapper"> - <h1>Leaderboard</h1> - <p>You can swap leadboard using the dropdown (not implemented)</p> - </div> - <table class="leaderboard" cellspacing="0"> - <tr class="top_row row"> - <th>Character name</th> - <th>Time in guild</th> - <th>Ranking</th> - </tr> - {% for character in all_members %} - <tr class="row"> - <td class="data">{{ character[0] }}</td> - <td class="data">{{ character[1] }}</td> - <td class="data">{{ character[2] }}</td> - </tr> - {% endfor %} - </table> -{% endblock %}
\ No newline at end of file + <div class="center"> + <h1>Leaderboard</h1> + <p>See who is the most 1337 guild member!</p> + </div> + <table class="leaderboard" cellspacing="0"> + <thead> + <tr> + <th>Character name</th> + <th>Time in guild</th> + <th>Ranking</th> + </tr> + </thead> + <tbody> + {% for username, join_time in all_members %} + <tr> + <td>{{ username | e}}</td> + <td>{{ human_time_since(join_time) | e }}</td> + <td>{{ loop.index }}</td> + </tr> + {% endfor %} + </tbody> + </table> +{% endblock %} |