From 6879f585171c3faa934943b9803bb7de22fc098e Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 24 Jul 2026 15:29:51 +0000 Subject: [PATCH] Upload files to "templates/admin" --- templates/admin/avatar_items_view.html | 102 ++++++++++++++++++ templates/admin/bans.html | 98 ++++++++++++++++++ templates/admin/cdn_view.html | 138 +++++++++++++++++++++++++ templates/admin/chat.html | 137 ++++++++++++++++++++++++ templates/admin/console_view.html | 129 +++++++++++++++++++++++ 5 files changed, 604 insertions(+) create mode 100644 templates/admin/avatar_items_view.html create mode 100644 templates/admin/bans.html create mode 100644 templates/admin/cdn_view.html create mode 100644 templates/admin/chat.html create mode 100644 templates/admin/console_view.html diff --git a/templates/admin/avatar_items_view.html b/templates/admin/avatar_items_view.html new file mode 100644 index 0000000..08ab698 --- /dev/null +++ b/templates/admin/avatar_items_view.html @@ -0,0 +1,102 @@ +{% extends 'admin/custom_base.html' %} +{% block body %} +
+

Custom Avatar Items

+

Register new avatar items added to the backend DLL. These are added to the item pool alongside the base game items.

+ + {% if error %} +
{{ error }}
+ {% endif %} + {% if success %} +
{{ success }}
+ {% endif %} + + {% if SCOPE_ADMIN in scopes %} +
+
+ Add New Avatar Item
+
+
+ +
+
+ + + Unique identifier matching the DLL. +
+
+ + +
+
+
+ + + Unlocked for all new players at level 1. +
+
+
+ +
+
+
+
+
+ {% endif %} + +
+
+ Registered Custom Items + {{ custom_items|length }} +
+
+ + + + + + + {% if SCOPE_ADMIN in scopes %}{% endif %} + + + + {% if not custom_items %} + + {% else %} + {% for item in custom_items %} + {% set item_guid = item.AvatarItemDesc.split(',')[0] %} + + + + + {% if SCOPE_ADMIN in scopes %} + + {% endif %} + + {% endfor %} + {% endif %} + +
Friendly NameItem ID (AvatarItemDesc)Default / StarterActions
No custom items registered yet.
{{ item.FriendlyName }}{{ item.AvatarItemDesc }} + {% if item.get('Starter', false) %} + Default + {% else %} + No + {% endif %} + +
+ + + +
+
+ + + +
+
+
+
+
+{% endblock %} diff --git a/templates/admin/bans.html b/templates/admin/bans.html new file mode 100644 index 0000000..7f025de --- /dev/null +++ b/templates/admin/bans.html @@ -0,0 +1,98 @@ +{% extends "admin/admin_base.html" %} +{% block title %}Bans — KittyRec Admin{% endblock %} +{% block head %} + +{% endblock %} + +{% block content %} + + +
+
+

Active Bans

+ {% if banned %} +
+ + + + {% for p in banned %} + + + + + + + + {% endfor %} + +
PlayerReasonUntilByActions
+ {{ p.username }} +
#{{ p.id }}
+
{{ p.ban_reason or '—' }} + {% if not p.banned_until %} + PERMANENT + {% else %} + {{ p.banned_until[:16] if p.banned_until else '—' }} + {% endif %} + {{ p.banned_by or '—' }} +
+ {% if SCOPE_ADMIN in scopes %} + + {% endif %} +
+
+
+ {% else %} +

No active bans

+ {% endif %} +
+ +
+

Recent Ban Log

+ {% if ban_log %} +
+ + + + {% for b in ban_log %} + + + + + + + + {% endfor %} + +
WhenActionPlayerReasonAdmin
{{ b.created_at[:16] if b.created_at else '—' }} + {% if b.action == 'ban' %}Ban + {% else %}Unban{% endif %} + {{ b.username }}{{ b.reason or '—' }}{{ b.admin_name or '—' }}
+
+ {% else %} +

No moderation history

+ {% endif %} +
+
+{% endblock %} + +{% block scripts %} + +{% endblock %} diff --git a/templates/admin/cdn_view.html b/templates/admin/cdn_view.html new file mode 100644 index 0000000..c85d4bc --- /dev/null +++ b/templates/admin/cdn_view.html @@ -0,0 +1,138 @@ +{% extends 'admin/custom_base.html' %} +{% block body %} +
+

CDN / File Hosting

+ +
+
Upload File
+
+
+
+ + + Leave blank for auto-generated name +
+
+ + +
+
+ +
+ + +
+
+
+ + +
+
+ +
+
+ +
+
Hosted Files
+
+ + + + + + + + + + + + +
NameLabelSizeUploadedURL
+ +
+
+
+ + +{% endblock %} diff --git a/templates/admin/chat.html b/templates/admin/chat.html new file mode 100644 index 0000000..f5a04d1 --- /dev/null +++ b/templates/admin/chat.html @@ -0,0 +1,137 @@ +{% extends "admin/admin_base.html" %} +{% block title %}Chat Moderation — KittyRec Admin{% endblock %} +{% block head %} + +{% endblock %} + +{% block content %} + + +
+ +
+ + + + + + + + + + + + {% for t in threads %} + + + + + + + + {% endfor %} + +
IDPlayersMessagesLast ActivityActions
#{{ t.id }} + {% for p in t.players %} + {{ p.username }}{% if not loop.last %} · {% endif %} + {% endfor %} + {{ t.message_count }}{{ t.last_message_at[:16] if t.last_message_at else '—' }} + +
+
+
+ +
+
+
+
Thread
+
+
+ +
+
+

Loading…

+
+
+{% endblock %} + +{% block scripts %} + +{% endblock %} diff --git a/templates/admin/console_view.html b/templates/admin/console_view.html new file mode 100644 index 0000000..77d1aac --- /dev/null +++ b/templates/admin/console_view.html @@ -0,0 +1,129 @@ +{% extends 'admin/custom_base.html' %} + +{% block head_css %}{{ super() }} + +{% endblock %} + +{% block body %} +{{ super() }} +
+
+

Console

+ +
+
+
+ + connecting… + + + +
+
+
+
+ + +{% endblock %}