X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/851d4e0ba5381535c55fe4347103aaa53c785606..25e2e5d9d53f08724f2fe9661265d58d850c5d17:/templates/allsandwiches.html diff --git a/templates/allsandwiches.html b/templates/allsandwiches.html index 2a7435c..17c40df 100644 --- a/templates/allsandwiches.html +++ b/templates/allsandwiches.html @@ -3,7 +3,7 @@ {% block content %} {% for s in allsandwiches %}

{{ s.adjective }}

-

Made on {{ s.date_made }} and added by {{ s.user.username }}.

+

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 %}

{% if s.picture %} {% endif %} @@ -14,8 +14,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