1 {% extends "cookbook/base.html" %}
4 <h1>{{ recipe.name }}</h1>
7 <table class="metadata">
8 <tr><td>Author</td><td>{{ recipe.author|default:"unknown" }}</td></tr>
9 {% if recipe.source or recipe.url %}
10 <tr><td>Source</td><td><a href="{{ recipe.url }}">{{ recipe.source|default:recipe.url }}</a></td></tr>
12 {% if recipe.x_yield %}
13 <tr><td>Yield</td><td>{{ recipe.x_yield }}</td></tr>
15 {% if recipe.tags.all %}
18 {% for tag in recipe.tags.all %}
19 <a href="{% url tag tag.id %}">{{ tag }}</a>
27 {% block ingredients %}
30 {% for ingredient_block in recipe.ingredientblock_set.all %}
31 <div class="ingredient_block">
32 <h3>{{ ingredient_block.name }}</h3>
34 {% for ingredient in ingredient_block.ingredient_set.all %}
35 <li>{{ ingredient }}</li>
38 {% if ingredient_block.directions %}
41 <div class="directions">
42 {{ ingredient_block.directions|safe }}
50 {% block directions %}
53 <div class="directions">
54 {{ recipe.directions|safe }}