diff options
Diffstat (limited to 'greenbox/templates/recipe/recipe_detail.html')
-rw-r--r-- | greenbox/templates/recipe/recipe_detail.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/greenbox/templates/recipe/recipe_detail.html b/greenbox/templates/recipe/recipe_detail.html new file mode 100644 index 0000000..8f1fa1b --- /dev/null +++ b/greenbox/templates/recipe/recipe_detail.html | |||
@@ -0,0 +1,19 @@ | |||
1 | {% extends "base_generic.html" %} | ||
2 | {% load ingredientformat %} | ||
3 | |||
4 | {% block page_title %}{{ object.title }}{% endblock %} | ||
5 | {% block title %}{{ object.title }}{% endblock %} | ||
6 | |||
7 | {% block contents %} | ||
8 | <div id="recipe_description">{{ object.description|linebreaks }}</div> | ||
9 | |||
10 | <h3>Ingredients</h3> | ||
11 | <ul> | ||
12 | {% for ingredient in object.recipeingredient_set.all %} | ||
13 | <li>{{ ingredient.quantity|format_ingredient_quantity }} {{ ingredient.units.abbreviation }} {{ ingredient.ingredient.name }}</li> | ||
14 | {% endfor %} | ||
15 | </ul> | ||
16 | |||
17 | <h3>Directions</h3> | ||
18 | {{ object.instructions|linenumbers|linebreaks }} | ||
19 | {% endblock %} | ||