{% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} {% load i18n %} {% load l10n %} {% load custom_tags %} {% block title %}{{ recipe.name }}{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
{% recipe_rating recipe request.user as rating %}

{{ recipe.name }} {{ rating|safe }}

{% if request.user.is_authenticated %}
{% endif %}
{% if recipe.storage %} {% trans 'in' %} {{ recipe.storage.name }}
{% endif %} {% if recipe.internal %} {% trans 'by' %} {{ recipe.created_by.get_user_name }}
{% endif %} {% if recipe.keywords %} {% for x in recipe.keywords.all %} {{ x }} {% endfor %}

{% endif %} {% if recipe.working_time and recipe.working_time != 0 %} {% trans 'Preparation time ca.' %} {{ recipe.working_time }} min {% endif %} {% if recipe.waiting_time and recipe.waiting_time != 0 %} {% trans 'Waiting time ca.' %} {{ recipe.waiting_time }} min {% endif %} {% recipe_last recipe request.user as last_cooked %} {% if last_cooked %} {% trans 'Last cooked' %} {{ last_cooked|date }} {% endif %} {% if recipe.waiting_time and recipe.waiting_time != 0 or recipe.working_time and recipe.working_time != 0 or last_cooked %}

{% endif %}
{% if ingredients %}

{% trans 'Ingredients' %}


{% for i in ingredients %} {% if i.unit.name == 'Special:Header' %} {% else %} {% endif %} {% endfor %}
{{ i.note }}
{% if i.food.recipe %} {% endif %} {{ i.food.name }} {% if i.food.recipe %} {% endif %} {% if i.note %}
{{ i.note }}
{% endif %}
{% endif %} {% if recipe.image %}
{% trans 'Recipe Image' %}

{% endif %}
{% if ingredients or recipe.image %}

{% endif %}
{% if recipe.instructions %} {{ recipe.instructions | markdown | safe }} {% endif %}
{% if recipe.storage %}
{% if recipe.internal %}
{% trans 'View external recipe' %}
{% else %} {% if '.pdf' in recipe.file_path %}
{% endif %} {% if '.jpg' in recipe.file_path or '.png' in recipe.file_path or '.jpeg' in recipe.file_path %}
{% trans 'External recipe image' %}
{% endif %}
{% trans 'External recipe' %}

{% blocktrans %} This is an external recipe, which means you can only view it by opening the link above. You can convert this recipe to a fancy recipe by pressing the convert button. The original file will still be accessible. {% endblocktrans %}.

{% trans 'Convert now!' %} {% trans 'View external recipe' %}

{% endif %}
{% endif %} {% if request.user.userpreference.comments %}

{% trans 'Comments' %}
{% for c in comments %}
{{ c.updated_at }} {% trans 'by' %} {{ c.created_by.username }}
{{ c.text }}

{% endfor %} {% if request.user.is_authenticated %}
{% csrf_token %}
{% endif %} {% endif %} {% if recipe.storage %} {% include 'include/recipe_open_modal.html' %} {% endif %} {% include 'include/log_cooking.html' %} {% endblock %}