diff --git a/templates/admin/events_view.html b/templates/admin/events_view.html new file mode 100644 index 0000000..2d8cf92 --- /dev/null +++ b/templates/admin/events_view.html @@ -0,0 +1,310 @@ +{% extends 'admin/custom_base.html' %} + +{% block head_css %}{{ super() }} + +{% endblock %} + +{% block body %} +{{ super() }} +
No player selected. Enter a player ID:
+ +All gift boxes across all players
+| ID | +Player | +XP | +Item | +Rarity | +Context | +Status | +Created | +
|---|---|---|---|---|---|---|---|
| {{ g.id }} | +{{ g.username }} | ++{{ g.xp }} | ++ {% if g.avatar_item_desc %} + {{ g.avatar_item_desc }} + {% elif g.consumable_item_desc %} + {{ g.consumable_item_desc }} + {% elif g.equipment_prefab_name %} + {{ g.equipment_prefab_name | replace('[','') | replace(']','') }} + {% elif g.currency and g.currency > 0 %} + {{ g.currency }} {% if g.currency_type == 1 %}LaserTag Tickets{% elif g.currency_type == 2 %}Tokens{% elif g.currency_type == 100 %}Lost Skulls{% else %}Currency{% endif %} + {% elif g.xp and g.xp > 0 %} + XP only + {% elif g.level and g.level > 0 %} + Level grant + {% else %} + — + {% endif %} + | ++ {% set rmap = {0: ('Common','badge-gray'), 10: ('Uncommon','badge-green'), 20: ('Rare','badge-teal'), 30: ('Epic','badge-yellow'), 50: ('Legendary','badge-purple')} %} + {% set rinfo = rmap.get(g.gift_rarity, ('?','badge-gray')) %} + {{ rinfo[0] }} + | ++ {% if g.gift_context == 1 %}Post-game + {% elif g.gift_context == 2 %}Store + {% else %}Admin{% endif %} + | ++ {% if g.consumed %} + Opened + {% else %} + Pending + {% endif %} + | +{{ g.created_at[:16] if g.created_at else '—' }} | +
| Player | Level | Room | Actions |
|---|---|---|---|
| + {{ p.username }} + {% if p.developer %}Dev{% endif %} + {% if p.screen_mode %}Screen{% else %}VR{% endif %} + | +{{ p.level }} | +{{ p.room }} | +
+
+
+ {% if SCOPE_ADMIN in scopes %}
+
+
+
+ {% endif %}
+
+
+ |
+
| Room | Activity | Players | Mode |
|---|---|---|---|
| {{ s.photon_room_id }} | +{{ s.name }} | +{{ s.players|length }} | ++ {% if s.sandbox %}Sandbox + {% elif s.private %}Private + {% else %}Public{% endif %} + | +
| # | Player | Level | Playtime | Sessions |
|---|---|---|---|---|
| Loading… | ||||
| Action | Admin | Details | Time |
|---|---|---|---|
| + {% if 'ban' in a.action and 'unban' not in a.action %}{{ a.action|upper }} + {% elif a.action == 'unban' %}UNBAN + {% elif a.action == 'login' %}LOGIN + {% elif a.action == 'disconnect' %}KICK + {% elif a.action in ('gift_all', 'gift_xp', 'gift_player') %}GIFT + {% elif a.action == 'reroll_store' %}STORE + {% elif a.action == 'toggle_dev' %}DEV + {% elif a.action == 'reset_password' %}RESET PASS + {% elif a.action == 'send_dm' %}DM + {% elif a.action == 'maintenance_mode' %}MAINT + {% elif a.action == 'git_sync' %}GIT + {% elif a.action == 'create_room' %}ROOM + {% else %}{{ a.action|upper }}{% endif %} + | +{{ a.admin_name }} | +{{ (a.details or '—')|e }} | +{{ a.created_at[:16] if a.created_at else '' }} | +
File:
+ {{ current.file }}
SHA-512:
+ {{ current.hash }}
No DLL uploaded for this branch.
+ {% endif %} +