1 {% extends "base.html" %}
4 {% for s in allsandwiches %}
5 <h3 class="sandwichtitle">{{ s.adjective }}</h3>
6 <p class="metadata">Made on {{ s.date_made|date:"F j Y" }} and added by
7 {% ifequal s.user request.user %} you.
8 <a href="{% url edit_sandwich slug=s.slug %}"> (Edit)
10 {% if s.user.first_name %} {{ s.user.first_name }}
11 {% if s.user.last_name %} {{ s.user.last_name }}
14 {{ s.user.username }}.
18 <img class="sandwichimg" src="{{ s.picture.url }}">
20 <h4 class="sandwichsub">Ingredients</h4>
21 <ul class="ingredients">
22 {% for i in s.ingredients.all %}
27 <h4 class="sandwichsub">Notes</h4>
28 <p class="sandnotes"> {{ s.notes }}</p>
31 {% get_comment_count for s as c %}
33 <p class="sandnotes"><a href="{{ s.get_absolute_url }}">1 comment</a></p>
35 <p class="sandnotes"><a href="{{ s.get_absolute_url }}">{{ c }} comments</a></p>