Added Ingredient option to Recipe Steps
Showing
... | ... | @@ -16,16 +16,26 @@ Created by <a href="{{ url_for('.user', username=recipe.author.username) }}">{{ |
<p><strong>Associated Cuisines: </strong> {% for cuisine in recipe.cuisines %} <span class="badge"><a href="{{ url_for('.cuisine', id=cuisine.id) }}"> {{ cuisine.name }} </a></span>{% endfor %} <br/> | ||
{% endif %} | ||
{% if recipe.methods.count() > 0 %} | ||
<strong>Associated Methods: </strong> {% for method in recipe.methods %} <span class="badge"> <a href="{{ url_for('.method', id=method.id) }}">{{ method.name }}</a> </span>{% endfor %} <br/></p> | ||
<strong>Associated Methods: </strong> {% for method in recipe.methods %} <span class="badge"> <a href="{{ url_for('.method', id=method.id) }}">{{ method.name }}</a> </span>{% endfor %} <br/> | ||
{% endif %} | ||
<strong>Ingredients: </strong> {% for step in recipe.steps %} | ||
{% if step.ingredients %} | ||
{% for ingredient in step.ingredients %} | ||
<span class="badge"><a href="{{ url_for('.ingredient', id=ingredient.id) }}"> {{ ingredient.name }} </a></span> | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} | ||
</p> | ||
< |