{% extends "base.html" %} {% block title %}All Sandwiches{% endblock %} {% block content %} {% for s in allsandwiches %}

{{ s.adjective }}

Made on {{ s.date_made|date:"F j Y" }} and added by {% ifequal s.user request.user %} you. (Edit) {% else %} {% if s.user.first_name %} {{ s.user.first_name }} {% if s.user.last_name %} {{ s.user.last_name }} {% endif %} {% else %} {{ s.user.username }}. {% endif %} {% endifequal %}

{% if s.picture %} {% endif %}

Ingredients

{% if s.notes %}

Notes

{{ s.notes }}

{% endif %} {% load comments %} {% get_comment_count for s as c %} {% ifequal c 1 %}

1 comment

{% else %}

{{ c }} comments

{% endifequal %} {% endfor %} {% endblock %}