{% extends "base.html" %} {% block title %}{{ recipe.name }} — Menu Planner{% endblock %} {% block content %}
Back to Recipes
{{ cuisine_emoji.get(recipe.cuisine, '') }} {{ recipe.cuisine }}

{{ recipe.name }}

{{ recipe.description }}

{% if recipe.added_by %}

Added by {{ recipe.added_by }}

{% endif %}
{% if recipe.status == 'favorited' %}
Favorited {% endif %}
{{ recipe.calories_per_serving|int }} cal / serving {{ recipe.carbs_per_serving|int }}g net carbs {% if recipe.protein_per_serving %} {{ recipe.protein_per_serving|int }}g protein {% endif %} {% if recipe.fat_per_serving %} {{ recipe.fat_per_serving|int }}g fat {% endif %} Prep: {{ recipe.prep_time }} min Cook: {{ recipe.cook_time }} min {{ recipe.servings }} servings
Your rating: {% for i in range(1, 6) %} {% endfor %} {% if recipe.rating %}({{ recipe.rating }}/5){% endif %}

Ingredients

{% set categories = ingredients | map(attribute='category') | list | unique | list %} {% for cat in ['Meat & Poultry','Seafood','Dairy & Eggs','Produce','Pantry','Spices & Herbs'] %} {% set cat_ings = ingredients | selectattr('category', 'equalto', cat) | list %} {% if cat_ings %}
{{ cat }}
    {% for ing in cat_ings %}
  • {% if ing.quantity == ing.quantity|int %}{{ ing.quantity|int }}{% else %}{{ ing.quantity }}{% endif %} {{ ing.unit }} {{ ing.name }}
  • {% endfor %}
{% endif %} {% endfor %}

Instructions

{% for line in recipe.instructions.strip().split('\n') %} {% if line.strip() %}
{{ line.strip() }}
{% endif %} {% endfor %}
Comments {% if comments %}{{ comments|length }}{% endif %}
{% for c in comments %}
{{ c.username }} {{ c.created_at[:16].replace('T',' ') }}
{% if current_user.is_authenticated and current_user.username == c.username %}
{% endif %}

{{ c.body }}

{% else %}

No comments yet.

{% endfor %} {% if current_user.is_authenticated %}
{% else %}

Log in to leave a comment.

{% endif %}
{% if current_user.is_authenticated %}
Add to Meal Plan
Recipe Status
{% else %}

Log in to add this to your meal plan or update its status.

Log in
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}