hermes-trace/templates/index.html
XLion 8e7e12969e
fix: apply utc8 filter to session list last_activity
Index page was displaying raw UTC datetime; the | utc8 filter
converts it to Asia/Taipei time (UTC+8).
2026-06-19 02:26:07 +08:00

31 lines
931 B
HTML

{% extends "layout.html" %}
{% block title %}hermes-trace — Sessions{% endblock %}
{% block content %}
<h1>hermes-trace</h1>
<p class="subtitle">LLM turn telemetry viewer — browse sessions and inspect API call details.</p>
{% if sessions %}
<table>
<thead>
<tr>
<th>Session ID</th>
<th>Turns</th>
<th>Last Activity</th>
<th>Models</th>
</tr>
</thead>
<tbody>
{% for s in sessions %}
<tr>
<td><a href="/session/{{ s.session_id | urlencode }}">{{ s.session_id[:48] }}{% if s.session_id | length > 48 %}…{% endif %}</a></td>
<td>{{ s.turn_count }}</td>
<td>{{ s.last_activity | utc8 }}</td>
<td class="models-cell">{{ s.models }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div class="empty-state">No sessions recorded yet.</div>
{% endif %}
{% endblock %}