{% extends "base_with_list.html" %} {% block content %}

{{ recipe.title }}

{% if user.is_some() && recipe.user_id == user.as_ref().unwrap().id %} Edit {% endif %}
{% for tag in recipe.tags %} {{ tag }} {% endfor %}
{% match recipe.servings %} {% when Some(servings) %} {% if *servings == 1 %} {{ tr.t(Sentence::RecipeOneServing) }} {% else %} {{ tr.tp(Sentence::RecipeSomeServings, [Box::new(**servings)]) }} {% endif %} {% else %} {% endmatch %} {% match recipe.estimated_time %} {% when Some(time) %} {{ time +}} {{+ tr.t(Sentence::RecipeEstimatedTimeMinAbbreviation) }} {% else %} {% endmatch %} {% if !recipe.description.is_empty() %}
{{ recipe.description.clone() }}
{% endif %}
{% endblock %}