diff --git a/templates/admin/rooms_manage.html b/templates/admin/rooms_manage.html new file mode 100644 index 0000000..77070cf --- /dev/null +++ b/templates/admin/rooms_manage.html @@ -0,0 +1,481 @@ +{% extends 'admin/custom_base.html' %} +{% block body %} +
+
+

Manage Rooms

+ {{ all_rooms|length }} rooms +
+ +{% if SCOPE_ADMIN in scopes %} +
+
+
+
+ + Create Room +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+ +
+
+
+ Gamemode Defaults + Per-activity flag overrides +
+
+
+ + + + {% for guid, gm_val in gamemode_defaults.items() %} + + + + + + {% endfor %} + {% if not gamemode_defaults %} + + {% endif %} + +
ActivityFlags
{{ activities.get(guid, guid[:12]+'...') }}{{ gm_val }} ({{ gm_val }})
No defaults set
+
+
+
+
+ +
+
+
+ {% for flag in gamemode_flags %} +
+ + +
+ {% endfor %} +
+
+
+ +
+
+
+
+
+
+ {% endif %} + +
+
+ All Rooms + +
+
+
+ + + + + + + + + + + + + {% if SCOPE_ADMIN in scopes %}{% endif %} + + + + {% if not all_rooms %} + + {% else %} + {% for r in all_rooms %} + + + + + + + + + + + {% if SCOPE_ADMIN in scopes %} + + {% endif %} + + {% endfor %} + {% endif %} + +
IDNameActivityMaxSandboxGamemodeOwnerJoinsCreatedActions
No rooms yet.
{{ r.RoomId }}{{ r.Name }}{{ activities.get(r.ActivityLevelId, '') }}
{{ r.ActivityLevelId }}
{{ r.MaxPlayers }}{% if r.IsSandbox %}Yes{% else %}No{% endif %} + {% if r.SpecialGamemode %} + {{ r.SpecialGamemode }} + {% else %} + 0 + {% endif %} + {{ r.CreatorPlayerId }} + {% if r.Disabled %} + Blocked + {% else %} + Open + {% endif %} + {{ r.CreatedAt[:16] if r.CreatedAt else '' }} + + +
+
+
+
+
+ +{% if SCOPE_ADMIN in scopes %} +
+
+ +

Edit Room

+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+ {% for flag in gamemode_flags %} + + {% endfor %} +
+ + 0=None, 1=MaxFiringRate, 2=RandomEnemy, 4=RandomLoot (combine with +) +
+
+
+ + +
+
+ + + + +
+
+ + +
+
+ + +
+
+
+ +
+ +
+ + + +
+
+
+
+ +
+
+ + + + +
+
+ +
+
+{% endif %} + + +{% endblock %} diff --git a/templates/admin/sessions.html b/templates/admin/sessions.html new file mode 100644 index 0000000..82b782c --- /dev/null +++ b/templates/admin/sessions.html @@ -0,0 +1,80 @@ +{% extends "admin/admin_base.html" %} +{% block title %}Sessions — KittyRec Admin{% endblock %} +{% block head %} + +{% endblock %} + +{% block content %} + + +{% if session_details %} +
+ {% for sd in session_details %} +
+
+ {{ sd.session.photon_room_id }} + {% if sd.session.sandbox %}Sandbox + {% elif sd.session.private %}Private + {% else %}Public{% endif %} + {{ sd.session.players|length }} +
+
{{ sd.session.name }}
+
Activity: {{ sd.session.activity_key }}
+
+ {% for p in sd.players %} +
+ + {{ p.Username }} + Lv {{ p.Level }} + +
+ {% endfor %} + {% if not sd.players %} + No player profiles found + {% endif %} +
+
+ {% endfor %} +
+{% else %} +
+
No active sessions right now
+
+{% endif %} +{% endblock %} + +{% block scripts %} + +{% endblock %} diff --git a/templates/admin/sessions_view.html b/templates/admin/sessions_view.html new file mode 100644 index 0000000..4c958f3 --- /dev/null +++ b/templates/admin/sessions_view.html @@ -0,0 +1,66 @@ +{% extends 'admin/custom_base.html' %} + +{% block body %} +
+
+

Live Sessions

+ {{ online_count }} online +
+ + {% if details %} +
+ {% for d in details %} +
+
+
+
+ {{ d.session.name }} + {% if d.session.sandbox %}Sandbox + {% elif d.session.private %}Private + {% else %}Public{% endif %} +
+ {{ d.players|length }} players +
+
+
+ {{ d.session.photon_room_id }} +
+ {% for p in d.players %} +
+ + {{ p.Username }} + {% if p.Developer %}Dev{% endif %} + Lv {{ p.Level }} + + +
+ {% endfor %} +
+
+
+ {% endfor %} +
+ {% else %} +
No active sessions right now.
+ {% endif %} +
+ + +{% endblock %} diff --git a/templates/admin/store_view.html b/templates/admin/store_view.html new file mode 100644 index 0000000..468a0b3 --- /dev/null +++ b/templates/admin/store_view.html @@ -0,0 +1,132 @@ +{% extends 'admin/custom_base.html' %} + +{% block body %} +
+
+

Store

+ Rotates every 12 hours — remaining + {% if SCOPE_ADMIN in scopes %} +
+ + +
+ {% endif %} +
+ + {% with messages = get_flashed_messages(with_categories=true) %} + {% for cat, msg in messages %} +
+ {{ msg }} +
+ {% endfor %} + {% endwith %} + + {% if SCOPE_ADMIN in scopes %} +
+
+ Pinned Items +
+ + + +
+
+
+ {% set rarity_colors = {0:'secondary',1:'primary',2:'info',3:'warning',4:'warning',5:'danger'} %} + {% set rarity_names = {0:'Common',1:'Uncommon',2:'Rare',3:'Epic',4:'Legendary',5:'Mythic'} %} +
+ {% for entry in featured %} + {% set fitem = all_items | selectattr('GiftDropId', 'equalto', entry.gift_drop_id) | first %} + {% if fitem %} +
+
+
+
+
+ Slot {{ entry.slot }} + {{ rarity_names.get(fitem.Rarity, '') }} +
{{ fitem.FriendlyName }}
+
#{{ fitem.GiftDropId }}
+
+
+ + + +
+
+
+
+
+ {% endif %} + {% else %} +
No pinned items. Pinned items always appear in the store regardless of rotation.
+ {% endfor %} +
+ +
+ +
+ + +
+
+ + +
+ +
+
+
+ {% endif %} + +
Current Rotation ({{ current | length }} items)
+
+ {% for item in current %} +
+ +
+ {% endfor %} +
+ +

Seed offset: {{ seed_offset }}

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

Custom Swatches

+

Base items have one entry each. Add swatches below to create named color/style variants for gifting.

+ + {% if error %} +
{{ error }}
+ {% endif %} + {% if success %} +
{{ success }}
+ {% endif %} + + {% if SCOPE_ADMIN in scopes %} +
+
+ Add Swatch
+
+
+ +
+
+ + + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+ {% endif %} + +
+
Custom Swatches {{ swatches|length }}
+
+ + + + + + {% if SCOPE_ADMIN in scopes %}{% endif %} + + + + {% if not swatches %} + + {% else %} + {% for s in swatches %} + + + + {% if SCOPE_ADMIN in scopes %} + + {% endif %} + + {% endfor %} + {% endif %} + +
Friendly NameAvatarItemDescActions
No custom swatches yet.
{{ s.FriendlyName }}{{ s.AvatarItemDesc }} +
+ + + +
+
+
+
+
+ +{% endblock %}