Files
DarkflameServer/dDashboardServer/templates/activity_log.jinja2
Aaron Kimbrell e213a7aeff feat: web dashboard and playground work
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch:
accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy
reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live
events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved
captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes
they need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 22:30:43 -05:00

43 lines
1.2 KiB
Django/Jinja

{% extends "base.jinja2" %}
{% block title %}Activity Log - DarkflameServer{% endblock %}
{% block content %}
<h2 class="mb-1">Activity Log</h2>
<p class="text-body-secondary mb-4">Player activity history</p>
<div class="card">
<div class="card-body">
<table id="activityLogTable" class="table table-striped table-hover">
<thead>
<tr>
<th>ID</th>
<th>Character</th>
<th>Activity</th>
<th>Time</th>
<th>Zone</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
{% endblock %}
{% block scripts %}
<script type="application/json" id="zoneNames">{{ zone_names }}</script>
<script>
// Zone names were HTML-escaped by the server before rendering, so they are safe to insert as-is
var zoneNames = JSON.parse(document.getElementById('zoneNames').textContent);
$(function () {
serverTable('#activityLogTable', '/api/tables/activity_log', [
{ data: 'id' },
{ data: 'character_name' },
{ data: 'activity' },
{ data: 'time', render: function (d) { return fmt.unix(d); } },
{ data: 'map_id', render: function (d) { return (zoneNames[d] || 'Zone ' + esc(d)) + ' <span class="text-body-secondary">(' + esc(d) + ')</span>'; } }
], { liveTable: 'activity_log' });
});
</script>
{% endblock %}