X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/f3cb6c9aac4ebeec54e8a82959cf8d56b30b15b5..695fbac5cde9f2b38d3b67247480d7f470754331:/templates/allsandwiches.html diff --git a/templates/allsandwiches.html b/templates/allsandwiches.html index d55cdb9..eaaba21 100644 --- a/templates/allsandwiches.html +++ b/templates/allsandwiches.html @@ -1,9 +1,21 @@ {% 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 {% if s.user.first_name %} {{ s.user.first_name }} {% if s.user.last_name %} {{ s.user.last_name }} {% endif %} {% else %} {{ s.user.username }}. {% endif %}

+

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 %} @@ -14,8 +26,15 @@ {% endfor %} {% if s.notes %} -

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 %} \ No newline at end of file