Added a custom context processor (to pass in the context required for the sidebar...
[~kgodey/maayanwich.git] / templates / allsandwiches.html
1 {% extends "base.html" %}
2
3 {% block content %}
4         <h1 class="pagetitle">All Ma'ayanwiches</h1>
5                 {% for s in allsandwiches %}
6                         <h3 class="sandwichtitle">{{ s.adjective }}</h3>
7                         <p class="metadata">Made on {{ s.date_made }} and added by {{ s.user.username }}.</p>
8                         {% if s.picture %}
9                                 <img class="sandwichimg" src="{{ s.picture.url }}">
10                         {% endif %}
11                         <h4 class="sandwichsub">Ingredients</h4>
12                         <ul class="ingredients">
13                                 {% for i in s.ingredients.all %}
14                                         <li>{{ i.name }}
15                                 {% endfor %}
16                         </ul>
17                         <h4 class="sandwichsub">Notes</h5>
18                         <p class="sandnotes"> {{ s.notes }}</p>
19                 {% endfor %}
20 {% endblock %}