1df4b11aef
CI / lint-test-build (push) Failing after 1m7s
- Introduced new HTML templates for the dashboard, metrics, overview, and backtesting functionalities. - Implemented partial templates for metrics, overview, audit, controls, and charts to enhance modularity. - Updated the Jinja2 template resolution logic to support different deployment environments. - Added a health check template to display the service status. - Included a test suite to verify the template resolution logic. - Updated `pyproject.toml` to include new HTML templates in the package data.
38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
<div id="audit-panel" class="panel" style="margin-top: 16px">
|
|
<div class="label">Audit Trail</div>
|
|
<div class="meta">Generated {{ generated_at }}</div>
|
|
|
|
<div style="overflow-x: auto; margin-top: 12px">
|
|
<table style="width: 100%; border-collapse: collapse; font-size: 0.9rem">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align: left; padding: 8px">Time</th>
|
|
<th style="text-align: left; padding: 8px">Actor</th>
|
|
<th style="text-align: left; padding: 8px">Event</th>
|
|
<th style="text-align: left; padding: 8px">Decision</th>
|
|
<th style="text-align: left; padding: 8px">Payload</th>
|
|
<th style="text-align: left; padding: 8px">Correlation</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% if entries %}
|
|
{% for entry in entries %}
|
|
<tr>
|
|
<td style="padding: 8px; color: #9fb2d0">{{ entry.occurred_at }}</td>
|
|
<td style="padding: 8px">{{ entry.actor }}</td>
|
|
<td style="padding: 8px">{{ entry.event_type }}</td>
|
|
<td style="padding: 8px">{{ entry.decision }}</td>
|
|
<td style="padding: 8px; color: #9fb2d0">{{ entry.payload }}</td>
|
|
<td style="padding: 8px; color: #9fb2d0">{{ entry.correlation_id }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="6" style="padding: 8px; color: #9fb2d0">No audit entries yet.</td>
|
|
</tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|