-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ingredient (foodstuff detail) url to food app
Improve url naming Show recipe/ingredient/category selectors on all pages
- Loading branch information
Showing
5 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends "cocktail.html" %} | ||
|
||
{% block body %} | ||
<div class="cocktail"> | ||
<div class="box"> | ||
<div class="header"> | ||
<div class="title"> | ||
{{ category|capfirst }} {{ recipe_type|capfirst }} Recipes | ||
</div> | ||
</div> | ||
{% if matching_recipes %} | ||
<div class="bd"> | ||
{% for recipe in matching_recipes %} | ||
<div class="yui-gd"> | ||
<div class="yui-u first"><a href="{% url 'food:recipe-detail' recipe_type=recipe_type slug=recipe.slug %}">{{ recipe.title }}</a></div> | ||
<div class="yui-u">{{ recipe.teaser }}</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
<p>No {{ recipe_type }} recipes in the database.</p> | ||
{% endif %} | ||
<br /> | ||
{% include "food/food_select.html" %} | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters