From 66dd9d6c1d472df237dfe66206fcc402e78febbc Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Sat, 7 Feb 2026 20:59:16 +0000 Subject: [PATCH] style(tables): improve headers, pagination, and date columns - Add small-caps to all table column headers - Show Added date in normal font size with time as smaller subtext - Show Finished date in normal font size in bag table - Rename "Previous" to "Prev" in pagination controls - Use orange text and subtle hover on Prev/Next buttons and Rows select --- templates/partials/lists/bag_list.html | 10 +++++----- templates/partials/lists/brew_list.html | 6 +++--- templates/partials/lists/cafe_list.html | 6 +++--- templates/partials/lists/cup_list.html | 6 +++--- templates/partials/lists/gear_list.html | 6 +++--- templates/partials/lists/roast_list.html | 6 +++--- templates/partials/lists/roaster_list.html | 6 +++--- templates/partials/lists/table.html | 8 ++++---- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/templates/partials/lists/bag_list.html b/templates/partials/lists/bag_list.html index 1ef5fd2..3144ed9 100644 --- a/templates/partials/lists/bag_list.html +++ b/templates/partials/lists/bag_list.html @@ -21,7 +21,7 @@ {{ table::search_header(navigator, "#bag-list") }}
- + {{ table::sortable_header("Added", "created-at", navigator, "#bag-list") }} {{ table::sortable_header("Roaster", "roaster", navigator, "#bag-list") }} @@ -38,9 +38,9 @@ - {% endif %} - {% if bag.closed %} - {% endif %} diff --git a/templates/partials/lists/brew_list.html b/templates/partials/lists/brew_list.html index 461a455..2b04b65 100644 --- a/templates/partials/lists/brew_list.html +++ b/templates/partials/lists/brew_list.html @@ -36,7 +36,7 @@
+
{{ bag.created_date }}
- +
{{ bag.roaster_name }} @@ -68,11 +68,11 @@
{{ bag.remaining }} / {{ bag.amount }}g
+
{{ bag.finished_date }}
+
{{ bag.finished_date }}
- + {{ table::sortable_header("Added", "created-at", navigator, "#brew-list") }} @@ -54,9 +54,9 @@ -
Coffee
+
{{ brew.created_date }}
- +
{{ brew.roast_name }}
diff --git a/templates/partials/lists/cafe_list.html b/templates/partials/lists/cafe_list.html index fb5d9b6..5b7970f 100644 --- a/templates/partials/lists/cafe_list.html +++ b/templates/partials/lists/cafe_list.html @@ -21,7 +21,7 @@ {{ table::search_header(navigator, "#cafe-list") }}
- + {{ table::sortable_header("Added", "created-at", navigator, "#cafe-list") }} {{ table::sortable_header("Name", "name", navigator, "#cafe-list") }} @@ -41,9 +41,9 @@ class="transition hover:bg-surface-alt" onclick="toggleRow(event)" > -
+
{{ cafe.created_date }}
- +
{{ cafe.name }} diff --git a/templates/partials/lists/cup_list.html b/templates/partials/lists/cup_list.html index 6d14eed..6ee1fff 100644 --- a/templates/partials/lists/cup_list.html +++ b/templates/partials/lists/cup_list.html @@ -21,7 +21,7 @@ {{ table::search_header(navigator, "#cup-list") }}
- + {{ table::sortable_header("Added", "created-at", navigator, "#cup-list") }} {{ table::sortable_header("Roast", "roast", navigator, "#cup-list") }} @@ -40,9 +40,9 @@ class="transition hover:bg-surface-alt" {% if is_authenticated %}onclick="toggleRow(event)"{% endif %} > -
+
{{ cup.created_date }}
- +
{{ cup.roast_name }}
diff --git a/templates/partials/lists/gear_list.html b/templates/partials/lists/gear_list.html index b95f9dd..f6b7bd2 100644 --- a/templates/partials/lists/gear_list.html +++ b/templates/partials/lists/gear_list.html @@ -22,7 +22,7 @@
- + {{ table::sortable_header("Added", "created-at", navigator, "#gear-list") }} {{ table::sortable_header("Category", "category", navigator, "#gear-list") }} @@ -38,9 +38,9 @@ -
+
{{ item.created_date }}
- +
{{ item.make }} {{ item.model }} diff --git a/templates/partials/lists/roast_list.html b/templates/partials/lists/roast_list.html index b1cd263..8c4d5f7 100644 --- a/templates/partials/lists/roast_list.html +++ b/templates/partials/lists/roast_list.html @@ -21,7 +21,7 @@ {{ table::search_header(navigator, "#roast-list") }}
- + {{ table::sortable_header("Added", "created-at", navigator, "#roast-list") }} {{ table::sortable_header("Roast", "name", navigator, "#roast-list") }} @@ -44,9 +44,9 @@ class="transition hover:bg-surface-alt" {% if is_authenticated %}onclick="toggleRow(event)"{% endif %} > -
+
{{ roast.created_date }}
- +
{{ roast.name }}
diff --git a/templates/partials/lists/roaster_list.html b/templates/partials/lists/roaster_list.html index 992eeb4..9057c1d 100644 --- a/templates/partials/lists/roaster_list.html +++ b/templates/partials/lists/roaster_list.html @@ -21,7 +21,7 @@ {{ table::search_header(navigator, "#roaster-list") }}
- + {{ table::sortable_header("Added", "created-at", navigator, "#roaster-list") }} {{ table::sortable_header("Name", "name", navigator, "#roaster-list") }} @@ -41,9 +41,9 @@ class="transition hover:bg-surface-alt" {% if roaster.has_homepage || is_authenticated %}onclick="toggleRow(event)"{% endif %} > -
+
{{ roaster.created_date }}
- +
{{ roaster.name }} diff --git a/templates/partials/lists/table.html b/templates/partials/lists/table.html index 4e62ce9..62ec61e 100644 --- a/templates/partials/lists/table.html +++ b/templates/partials/lists/table.html @@ -24,7 +24,7 @@
{% if items.is_showing_all() %} Showing all results @@ -43,7 +43,7 @@ {% endif %}