forked from johnny603/lux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleaderboard.html
More file actions
36 lines (34 loc) · 1.21 KB
/
Copy pathleaderboard.html
File metadata and controls
36 lines (34 loc) · 1.21 KB
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
{% extends "base.html" %}
{% block content %}
<section class="panel">
<div class="grid two" style="align-items:start;">
<div>
<h2>Leaderboard</h2>
<p class="muted">Local progress rankings for solved counts, streaks, and XP style progression.</p>
</div>
<div class="stats">
<div class="stat">
<span class="muted">Metric</span>
<span class="value">{{ metric }}</span>
</div>
</div>
</div>
</section>
<section class="panel" style="margin-top:20px;">
{% for entry in board.entries %}
<div class="card" style="margin-bottom:12px;">
<div style="display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;">
<strong>{{ entry.name }}</strong>
<span class="badge">Score {{ entry.score }}</span>
</div>
<div class="muted-list" style="margin-top:12px;">
<span class="chip">Solved {{ entry.solved_count }}</span>
<span class="chip">Streak {{ entry.streak }}</span>
<span class="chip">XP {{ entry.xp }}</span>
</div>
</div>
{% else %}
<p class="muted">No leaderboard entries yet.</p>
{% endfor %}
</section>
{% endblock %}