diff --git a/templates/_entry_edit.html b/templates/_entry_edit.html
index 7a5e5bb..261faff 100644
--- a/templates/_entry_edit.html
+++ b/templates/_entry_edit.html
@@ -1,5 +1,5 @@
- |
+ |
- {% if recent_entries.is_empty() %}
+ {% if recent_days.is_empty() %}
Aucune entrée pour l'instant.
{% else %}
-
- {% for e in recent_entries %}
-
- | {{ e.day() }} |
- {{ e.start_time() }} – {{ e.end_time() }} |
-
- {{ e.client_name }} / {{ e.project_name }}
- {% if !e.note.is_empty() %} {{ e.note }} {% endif %}
- |
- {{ e.duration() }} |
-
- {% endfor %}
-
+ | Horaire | Projet | Note | Durée | |
+ {% let days = recent_days %}{% include "_entry_days.html" %}
{% endif %}
diff --git a/templates/_today.html b/templates/_today.html
index 287872e..bac889d 100644
--- a/templates/_today.html
+++ b/templates/_today.html
@@ -6,19 +6,13 @@
{% if today_entries.is_empty() %}
Rien de saisi pour l'instant.
{% else %}
-
-
- {% for e in today_entries %}
-
- | {{ e.start_time() }} – {{ e.end_time() }} |
-
- {{ e.client_name }} / {{ e.project_name }}
- {% if !e.note.is_empty() %} {{ e.note }} {% endif %}
- |
- {{ e.duration() }} |
-
- {% endfor %}
-
-
+
+
+ | Horaire | Projet | Note | Durée | |
+
+ {% for e in today_entries %}{% include "_entry_row.html" %}{% endfor %}
+
+
+
{% endif %}
diff --git a/templates/entries.html b/templates/entries.html
index da90dcf..0c6a6ad 100644
--- a/templates/entries.html
+++ b/templates/entries.html
@@ -16,7 +16,7 @@
{% endif %}
-
+
Entrées
{{ total }}
@@ -40,15 +40,13 @@
- {% if entries.is_empty() %}
+ {% if days.is_empty() %}
Aucune entrée sur cette période.
{% else %}
- | Jour | Horaire | Projet | Note | Durée | |
-
- {% for e in entries %}{% include "_entry_row.html" %}{% endfor %}
-
+ | Horaire | Projet | Note | Durée | |
+ {% include "_entry_days.html" %}
{% endif %}
diff --git a/tests/api.rs b/tests/api.rs
index 36fe729..68e504a 100644
--- a/tests/api.rs
+++ b/tests/api.rs
@@ -467,7 +467,7 @@ async fn dashboard_lists_20_most_recent_entries() {
let (status, html) = get_html(&app, "/ui/dernieres-entrees").await;
assert_eq!(status, StatusCode::OK);
- assert_eq!(html.matches(" |
|