diff --git a/src/infrastructure/repositories/roasts.rs b/src/infrastructure/repositories/roasts.rs index df480ab..a909ca3 100644 --- a/src/infrastructure/repositories/roasts.rs +++ b/src/infrastructure/repositories/roasts.rs @@ -264,6 +264,7 @@ impl RoastRepository for SqlRoastRepository { "ro.name", "COALESCE(r.origin,'')", "COALESCE(r.producer,'')", + "COALESCE(r.tasting_notes,'')", ], ) }); diff --git a/templates/partials/roast_list.html b/templates/partials/roast_list.html index 9a390c3..1cae4bd 100644 --- a/templates/partials/roast_list.html +++ b/templates/partials/roast_list.html @@ -16,12 +16,10 @@
| Notes | + {% call table::sortable_header("Added", "created-at", navigator, "#roast-list") %} + {% call table::sortable_header("Roast", "name", navigator, "#roast-list") %} + {% call table::sortable_header("Origin", "origin", navigator, "#roast-list") %} +Tasting Notes | {% if is_authenticated %}Actions | {% endif %} @@ -42,31 +40,28 @@ {{ roast.created_at }}
-
- {{ roast.name }}
-
+ {{ roast.name }}
+ {{ roast.roaster_label }}
|
- {{ roast.roaster_label }} | -{{ roast.origin }} | -{{ roast.producer }} | -+ | {{ roast.roaster_label }} | +
+ {{ roast.origin }}
+ {% if !roast.producer.is_empty() %}
+ {{ roast.producer }}
+ {% endif %}
+ |
+ {% if !roast.producer.is_empty() %}
+ {{ roast.producer }} | + {% endif %} +
{% if roast.tasting_notes.is_empty() %}
- No tasting notes yet.
+ No tasting notes yet.
{% else %}
-
|
{% if is_authenticated %}
|---|