X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/df689da172dfd36fe2512833a5c7c07ad5cb6446..f3cb6c9aac4ebeec54e8a82959cf8d56b30b15b5:/templates/onesandwich.html diff --git a/templates/onesandwich.html b/templates/onesandwich.html index 1158a43..d685ea3 100644 --- a/templates/onesandwich.html +++ b/templates/onesandwich.html @@ -4,7 +4,7 @@ {% block content %}

{{ 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,6 +14,17 @@
  • {{ i.name }} {% endfor %} -

    Notes

    -

    {{ s.notes }}

    + {% if s.notes %} +

    Notes

    +

    {{ s.notes }}

    + {% endif %} + {% load comments %} + {% get_comment_count for s as c %} +

    Comments

    + {% get_comment_list for s as clist %} + {% for comment in clist %} +

    {{ comment.user_name }} said:

    +

    {{ comment.comment }}

    +

    {{ comment.submit_date }}

    + {% endfor %} {% endblock %} \ No newline at end of file