-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaderboard.html
71 lines (71 loc) · 2.91 KB
/
leaderboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Leader Board</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body class="leaderboard-body">
<div class="leaderboard-container">
<header class="leaderboard-header">
<img src="{{ url_for('static', filename='image/symbol2.png') }}" class="left-symbol" alt="Left Symbol">
<h1 class="leaderboard-title">LEADERBOARD</h1>
<img src="{{ url_for('static', filename='image/symbol2.png') }}" class="right-symbol" alt="Right Symbol">
</header>
{% if is_admin %}
<a href="{{ url_for('admin') }}" style="float:right;" class="back-link">Back to Admin Page</a>
{% else %}
<a href="{{ url_for('send_rewards') }}" style="float:right;" class="back-link">Back to Rewards Page</a>
{% endif %}
<div class="leaderboard-tables-container">
<div class="leaderboard-section">
<h2>Top Scorers</h2>
<div class="table-container">
<table class="leaderboard-table">
<thead>
<tr>
<th class="ranking-column">Ranking</th>
<th>Username</th>
<th class="points-column">Total Points Received</th>
</tr>
</thead>
<tbody>
{% for scorer in top_scorers %}
<tr>
<td class="ranking-column">{{ loop.index }}</td>
<td>{{ scorer.username }}</td>
<td class="points-column">{{ scorer.total_points_received }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="leaderboard-section">
<h2>Most Points Sending Users </h2>
<div class="table-container">
<table class="leaderboard-table">
<thead>
<tr>
<th class="ranking-column">Ranking</th>
<th>Username</th>
<th class="points-column">Send Count</th>
</tr>
</thead>
<tbody>
{% for sender in most_sending_users %}
<tr>
<td class="ranking-column">{{ loop.index }}</td>
<td>{{ sender.username }}</td>
<td class="points-column">{{ sender.send_count }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>