X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/df689da172dfd36fe2512833a5c7c07ad5cb6446..403d327cae333430e857ed988f0cba7bc833a4a0:/templates/allsandwiches.html diff --git a/templates/allsandwiches.html b/templates/allsandwiches.html index 24f15b7..4f3a901 100644 --- a/templates/allsandwiches.html +++ b/templates/allsandwiches.html @@ -1,10 +1,19 @@ {% extends "base.html" %} {% block content %} -

All Ma'ayanwiches

{% 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 + {% 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,7 +23,16 @@
  • {{ i.name }} {% endfor %} -

    Notes

    -

    {{ s.notes }}

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