{% extends "base.html" %} {% load crispy_forms_tags %} {% load i18n %} {% load l10n %} {% load custom_tags %} {% block title %}{% trans 'View' %}{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

{{ recipe.name }}

{% if recipe.storage %} {% trans 'in' %} {{ recipe.storage.name }}
{% endif %} {% if recipe.internal %} {% trans 'by' %} {{ recipe.created_by.username }}
{% endif %}
{% if recipe.all_tags %} {{ recipe.all_tags }}

{% endif %} {% if recipe.time and recipe.time != 0 %} {% trans 'Preparation time ca.' %} {{ recipe.time }} min

{% endif %}
{% if ingredients %}

{% trans 'Ingredients' %}


{% for i in ingredients %} {% endfor %}
{{ i.name }}

{% endif %} {% if recipe.image %}
{% trans 'Recipe Image' %}

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

{% endif %} {% if recipe.instructions %} {{ recipe.instructions | markdown | safe }} {% endif %} {% if recipe.storage %} {% trans 'View external recipe' %} {% endif %} {% if not recipe.internal %}


{% 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!' %}

{% endif %}

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

{% endfor %} {% if recipe.storage %} {% include 'include/recipe_open_modal.html' %} {% endif %} {% endblock %}