{% import "partials/lists/table.html" as table %} {% import "partials/icons.html" as icons %}
{% if roasts.items.is_empty() && !navigator.has_search() %}

{% if is_authenticated %} No roasts added yet. Click Add to create the first roast. {% else %} No roasts added yet. {% endif %}

{% else %}
{{ table::search_header(navigator, "#roast-list") }}
{{ table::sortable_header("Added", "created-at", navigator, "#roast-list") }} {{ table::sortable_header("Roast", "name", navigator, "#roast-list") }} {{ table::sortable_header("Origin", "origin", navigator, "#roast-list") }} {% for roast in roasts.items %} {% if !roast.producer.is_empty() %} {% endif %} {% endfor %}
Tasting Notes
{{ roast.created_date }}
{{ roast.name }}
{{ roast.roaster_label }} {% if !roast.origin_flag.is_empty() %} {{ roast.origin_flag }} {% endif %}{{ roast.origin }} {% if !roast.producer.is_empty() %} {% endif %} {{ roast.producer }} {% if !roast.tasting_notes.is_empty() %}
{% for note in roast.tasting_notes %} {{ note.label }} {% endfor %}
{% else %} No Notes {% endif %}
{{ icons::chevron_right("h-5 w-5") }}
{% if roasts.items.is_empty() %}
No roasts match the search.
{% endif %} {{ table::pagination_header(roasts, navigator, "#roast-list") }} {% if roasts.has_next() %} {% endif %}
{% endif %}