dschandra commited on
Commit
2f4677c
·
verified ·
1 Parent(s): c7f87ab

Create leaderboard.html

Browse files
Files changed (1) hide show
  1. templates/leaderboard.html +31 -0
templates/leaderboard.html ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- templates/leaderboard.html -->
2
+ {% extends "base.html" %}
3
+ {% block title %}Leaderboard{% endblock %}
4
+ {% block content %}
5
+ <section class="leaderboard-section">
6
+ <h2>Leaderboard</h2>
7
+ <table>
8
+ <thead>
9
+ <tr>
10
+ <th>Rank</th>
11
+ <th>Name</th>
12
+ <th>Matches</th>
13
+ <th>DRS Dismissals</th>
14
+ <th>Score</th>
15
+ </tr>
16
+ </thead>
17
+ <tbody>
18
+ {% for player in leaderboard %}
19
+ <tr>
20
+ <td>{{ loop.index }}</td>
21
+ <td>{{ player.name }}</td>
22
+ <td>{{ player.matches }}</td>
23
+ <td>{{ player.drs_dismissals }}</td>
24
+ <td>{{ player.score }}</td>
25
+ </tr>
26
+ {% endfor %}
27
+ </tbody>
28
+ </table>
29
+ <a href="/" class="btn">Back to Home</a>
30
+ </section>
31
+ {% endblock %}