{% import "partials/icons.html" as icons %} {% macro share_button() %} {% endmacro %} {% macro share_script() %} {% endmacro %} {% macro coffee_card(roast_name, roaster_name, origin, origin_flag, region, producer, process, tasting_notes, roaster_slug, roast_slug) %}

Coffee

Roast
{% if !roast_slug.is_empty() %} {{ roast_name }} {% else %} {{ roast_name }} {% endif %}
Roaster
{{ roaster_name }}
{% if origin != "\u{2014}" %}
Origin
{% if !origin_flag.is_empty() %} {{ origin_flag }} {% endif %}{{ origin }}
{% endif %} {% if region != "\u{2014}" %}
Region
{{ region }}
{% endif %} {% if producer != "\u{2014}" %}
Producer
{{ producer }}
{% endif %} {% if process != "\u{2014}" %}
Process
{{ process }}
{% endif %}
{% if !tasting_notes.is_empty() %}
{% for note in tasting_notes %} {{ note.label }} {% endfor %}
{% endif %}
{% endmacro %} {% macro map_with_legend(map_countries, map_max, legends) %} {% if !map_countries.is_empty() %}
{% for entry in legends %} {{ entry.label }} {% endfor %}
{% endif %} {% endmacro %} {% macro edit_button(edit_url) %} {{ icons::pencil("h-4 w-4") }} Edit {% endmacro %} {% macro delete_button(entity_label, api_path, id) %}
{% endmacro %} {% macro edit_delete_buttons(edit_url, entity_label, api_path, id) %}
{{ icons::pencil("h-4 w-4") }} Edit
{% endmacro %} {% macro roaster_card(name, country, country_flag, city, homepage, roaster_slug) %}

Roaster

Name
{{ name }}
Country
{% if !country_flag.is_empty() %} {{ country_flag }} {% endif %}{{ country }}
{% if let Some(c) = city %}
City
{{ c }}
{% endif %} {% if let Some(url) = homepage %}
Website
Visit Website
{% endif %}
{% endmacro %}