first commit
This commit is contained in:
commit
dd6a740645
37 files changed
+5424
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<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>
|
||||
Reference in new issue
Block a user