diff --git a/templates/admin/leaderboard.html b/templates/admin/leaderboard.html new file mode 100644 index 0000000..499b9a0 --- /dev/null +++ b/templates/admin/leaderboard.html @@ -0,0 +1,72 @@ +{% extends "admin/admin_base.html" %} +{% block title %}Leaderboard — KittyRec Admin{% endblock %} + +{% block content %} +
Global all-time and periodic XP scores
+Resets the weekly/periodic score column for all players. All-time scores are unaffected.
+| Rank | +Player | +Level | +All-Time Score | +Periodic Score | +
|---|---|---|---|---|
| #{{ loop.index }} | ++ {{ e.username or ('#' ~ e.profile_id) }} + | +Lv {{ e.level or '?' }} | +{{ "{:,}".format(e.all_time or 0) }} | +{{ "{:,}".format(e.periodic or 0) }} | +
KittyRec INDEV · Authorized access only
+Manage the KittyRec in-game music. Uploaded files are served at /api/music/v1/file/<name>. Non-WAV files are auto-converted by ffmpeg on first play.
| # | +Filename | +Format | +Size | +Preview | + {% if SCOPE_ADMIN in scopes %}Actions | {% endif %} +
|---|---|---|---|---|---|
| No tracks in the music folder yet. | |||||
| {{ loop.index }} | +{{ t.name }} | +{{ t.ext.lstrip('.').upper() }} | +{{ t.size_kb }} KB | ++ {% if t.ext == '.wav' %} + + {% else %} + Converted on first play + {% endif %} + | + {% if SCOPE_ADMIN in scopes %} ++ + + | + {% endif %} +
Click Load to fetch activity
+No ban history
+ {% endif %} +| Date | XP | Item | Status |
|---|---|---|---|
| {{ g.created_at[:10] if g.created_at else '—' }} | ++{{ "{:,}".format(g.xp) }} | +{{ g.equipment_prefab_name or '—' }} | +{% if g.consumed %}Opened{% else %}Pending{% endif %} | +
No gifts
+ {% endif %} +Loading…
Loading…
Click Load
Click Load
Loading…
Loading…
Manage player accounts, bans, and rewards
+| + | ID | Player | Display Name | Level | XP | Tokens | Status | Joined | Last Login | Actions | +
|---|---|---|---|---|---|---|---|---|---|---|
| + | {{ p.id }} | +
+
+
+ {{ p.username }}
+
+ |
+ {{ p.display_name }} | +Lv {{ p.level }} | +{{ "{:,}".format(p.xp) }} | +{{ "{:,}".format(p.tokens or 0) }} | ++ {% if p.id in online_ids %} Online{% else %}Offline{% endif %} + {% if p.banned %}Banned{% endif %} + {% if p.developer %}Dev{% endif %} + | +{{ p.created_at[:10] if p.created_at else '—' }} | +{{ p.last_login[:10] if p.last_login else '—' }} | ++ + | +
Loading…