1 {% extends "base.html" %}
3 {% block title %} The {{ s.adjective }} Ma'ayanwich {% endblock %}
6 <h3 class="sandwichtitle">{{ s.adjective }}</h3>
7 <p class="metadata">Made on {{ s.date_made|date:"F j Y" }} and added by
8 {% ifequal s.user request.user %} you.
9 <a href="{% url edit_sandwich slug=s.slug %}"> (Edit)
11 {% if s.user.first_name %} {{ s.user.first_name }}
12 {% if s.user.last_name %} {{ s.user.last_name }}
15 {{ s.user.username }}.
19 <img class="sandwichimg" src="{{ s.picture.url }}">
21 <h4 class="sandwichsub">Ingredients</h4>
22 <ul class="ingredients">
23 {% for i in s.ingredients.all %}
28 <h4 class="sandwichsub">Notes</h4>
29 <p class="sandnotes"> {{ s.notes }}</p>
32 {% get_comment_count for s as c %}
34 <h4 class="sandwichsub">1 Comment</h4>
37 <p class="sandnotes"><b>No comments</b></p>
39 <h4 class="sandwichsub">{{c}} Comments</h4>
43 {% get_comment_list for s as clist %}
44 {% for comment in clist %}
45 <p class="comment_user">{{ comment.user_name }} said:</p>
46 <p class="sandnotes">{{ comment.comment }}</p>
47 <p class="metadata">{{ comment.submit_date }}</p>
49 <a name="comments"></a>
50 <h4 class="addcomment">Add a Comment</h4>
51 {% render_comment_form for s %}