{% extends "base.html" %} {% import "partials/detail_cards.html" as detail %} {% import "partials/icons.html" as icons %} {% import "partials/image_section.html" as img %} {% block title %}Brewlog · {{ bag.roast_name }}{% endblock %} {% block description %} {{ bag.roast_name }} by {{ bag.roaster_name }} — {{ bag.amount }} bag. {% endblock %} {% block og_title %}{{ bag.roast_name }} — Brewlog{% endblock %} {% block og_description %} {{ bag.roast_name }} by {{ bag.roaster_name }} — {{ bag.amount }} bag. {% endblock %} {% block head %} {% endblock %} {% block content %}
{% if let Some(url) = image_url %} {{ img::readonly_image(url, "roast image") }} {% else %}
{{ icons::bag("h-6 w-6") }}
{% endif %}

{{ bag.roast_name }}

Bags · {{ bag.created_date }}

{% if image_url.is_some() %} {{ img::lightbox_script() }} {% endif %} {# ── Coffee + map ── #}
{{ detail::coffee_card(bag.roast_name, bag.roaster_name, bag.origin, bag.origin_flag, bag.region, bag.producer, bag.process, bag.tasting_notes, roaster_slug, roast_slug) }} {{ detail::map_with_legend(bag.map_countries, bag.map_max, bag.legend_entries) }}
{# ── Roaster & bag info ── #}
{{ detail::roaster_card(bag.roaster_name, bag.roaster_country, bag.roaster_country_flag, bag.roaster_city, bag.roaster_homepage, roaster_slug) }}

Bag

Amount
{{ bag.amount }}
Status
{% if bag.closed %} Closed {% else %}

{{ bag.remaining }} / {{ bag.amount }}

{% endif %}
{% if let Some(rd) = bag.roast_date %}
Roast Date
{{ rd }}
{% endif %}
Opened
{{ bag.created_date }}
{% if let Some(fd) = bag.finished_date %}
Finished
{{ fd }}
{% endif %}
{% if is_authenticated %} {# ── Actions ── #}
{% if !bag.closed %} {% endif %} {{ icons::pencil("h-4 w-4") }} Edit
{% endif %} {% endblock %}