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 @@ - {% call table::sortable_header("Added", "created-at", navigator, "#roast-list") %} {% - call table::sortable_header("Roast", "name", navigator, "#roast-list") %} {% call - table::sortable_header("Roaster", "roaster", navigator, "#roast-list") %} {% call - table::sortable_header("Origin", "origin", navigator, "#roast-list") %} {% call - table::sortable_header("Producer", "producer", navigator, "#roast-list") %} - + {% 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") %} + {% if is_authenticated %} {% endif %} @@ -42,31 +40,28 @@ {{ roast.created_at }} - - - - + + {% if !roast.producer.is_empty() %} + + {% endif %} + {% if is_authenticated %}
NotesTasting NotesActions - + {{ roast.name }} + {{ roast.roaster_label }}{{ roast.origin }}{{ roast.producer }} + {{ roast.roaster_label }} + {{ roast.origin }} + {% if !roast.producer.is_empty() %} + + {% endif %} + {{ roast.producer }} {% if roast.tasting_notes.is_empty() %} - No tasting notes yet. + No tasting notes yet. {% else %} -
    - {% for note in roast.tasting_notes %} -
  • - {{ note }} -
  • - {% endfor %} -
+ {{ roast.tasting_notes.join(", ") }} {% endif %}