25 lines
905 B
HTML
25 lines
905 B
HTML
<section id="today" class="card" hx-get="/ui/today" hx-trigger="entries-changed from:body" hx-swap="outerHTML">
|
||
<div class="card-head">
|
||
<h2>Aujourd'hui</h2>
|
||
<span class="total">{{ today_total }}</span>
|
||
</div>
|
||
{% if today_entries.is_empty() %}
|
||
<p class="empty">Rien de saisi pour l'instant.</p>
|
||
{% else %}
|
||
<table class="entries">
|
||
<tbody>
|
||
{% for e in today_entries %}
|
||
<tr{% if e.running() %} class="running"{% endif %}>
|
||
<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>
|
||
{% endif %}
|
||
</section>
|