1 {% extends "base.html" %}
3 {% block title %}{{ xdate|date:"F Y" }} Sandwiches{% endblock %}
6 <h1 class="pagetitle">{{ xdate|date:"F Y" }} Sandwiches<h1>
7 {% for s in allsandwiches %}
8 <h3 class="sandwichtitle">{{ s.adjective }}</h3>
9 <p class="metadata">Made on {{ s.date_made|date:"F j Y" }} and added by
10 {% ifequal s.user request.user %} you.
11 <a href="{% url edit_sandwich slug=s.slug %}"> (Edit)
13 {% if s.user.first_name %} {{ s.user.first_name }}
14 {% if s.user.last_name %} {{ s.user.last_name }}
17 {{ s.user.username }}.
21 <img class="sandwichimg" src="{{ s.picture.url }}">
23 <h4 class="sandwichsub">Ingredients</h4>
24 <ul class="ingredients">
25 {% for i in s.ingredients.all %}
30 <h4 class="sandwichsub">Notes</h4>
31 <p class="sandnotes"> {{ s.notes }}</p>
34 {% get_comment_count for s as c %}
36 <p class="sandnotes"><a href="{{ s.get_absolute_url }}">1 comment</a></p>
38 <p class="sandnotes"><a href="{{ s.get_absolute_url }}">{{ c }} comments</a></p>