Files
DarkflameServer/dDashboardServer/templates/command_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

39 lines
1.1 KiB
Django/Jinja

{% extends "base.jinja2" %}
{% block title %}Command Log - DarkflameServer{% endblock %}
{% block content %}
<h2 class="mb-1">Command Log</h2>
<p class="text-body-secondary mb-4">Slash commands executed by players</p>
<div class="card">
<div class="card-body">
<table id="commandLogTable" class="table table-striped table-hover">
<thead>
<tr>
<th>ID</th>
<th>Character</th>
<th>Command</th>
<th>Time</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
{% endblock %}
{% block scripts %}
<script>
$(function () {
serverTable('#commandLogTable', '/api/tables/command_log', [
{ data: 'id' },
{ data: 'character_name', render: function (d, t, row) { return fmt.character(row.character_id, d); } },
{ data: 'command', render: function (d) { return '<code>' + esc(d) + '</code>'; } },
// Commands logged before times were recorded have none
{ data: 'time', render: function (d) { return d ? esc(fmt.unix(d)) : '<span class="text-body-secondary" title="Logged before the server recorded times">unknown</span>'; } }
], { liveTable: 'command_log', dataTable: { order: [[0, 'desc']] } });
});
</script>
{% endblock %}