X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/6257e70f7b73d39922d5160c648b418c4ac180a2..25e2e5d9d53f08724f2fe9661265d58d850c5d17:/templates/onesandwich.html
diff --git a/templates/onesandwich.html b/templates/onesandwich.html
index 2799cf3..60ea42b 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 %}
@@ -15,16 +15,27 @@
{% endfor %}
{% if s.notes %}
- Notes
+ Notes
{{ s.notes }}
{% endif %}
{% load comments %}
{% get_comment_count for s as c %}
- Comments
+ {% ifequal c 1 %}
+ 1 Comment
+ {% else %}
+ {% ifequal c 0 %}
+
No comments
+ {% else %}
+ {{c}} Comments
+ {% endifequal %}
+ {% endifequal %}
+
{% get_comment_list for s as clist %}
{% for comment in clist %}
{{ comment.comment }}
{{ comment.submit_date }}
{% endfor %}
+
+ {% render_comment_form for s %}
{% endblock %}
\ No newline at end of file