Files
tempus/templates/_recent.html
T
Romulus21andClaude Opus 5.5 8488b9217d Affiche les 20 dernières entrées sur la page d'accueil
Ajoute une carte « Dernières entrées » sous « Aujourd'hui », rafraîchie
via htmx sur entries-changed (route /ui/recent).

Closes #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 15:28:25 +01:00

28 lines
1018 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<section id="recent" class="card" hx-get="/ui/recent" hx-trigger="entries-changed from:body" hx-swap="outerHTML">
<div class="card-head">
<h2>Dernières entrées</h2>
<a href="/entries">Tout voir</a>
</div>
{% if recent_entries.is_empty() %}
<p class="empty">Aucune entrée pour l'instant.</p>
{% else %}
<div class="table-wrap">
<table class="entries">
<tbody>
{% for e in recent_entries %}
<tr{% if e.running() %} class="running"{% endif %}>
<td class="nowrap">{{ e.day() }}</td>
<td class="time">{{ e.start_time() }} – {{ e.end_time() }}</td>
<td>
<span class="dot" style="--color: {{ e.color }}"></span><span class="client">{{ e.client_name }}</span> / {{ e.project_name }}
{% if !e.note.is_empty() %}<div class="note">{{ e.note }}</div>{% endif %}
</td>
<td class="num">{{ e.duration() }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</section>