X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/735e53fa41a4911c1464a25ed0f24ac8769b878f..refs/heads/master:/templates/onesandwich.html?ds=sidebyside
diff --git a/templates/onesandwich.html b/templates/onesandwich.html
index b9bf28b..d88cfbd 100644
--- a/templates/onesandwich.html
+++ b/templates/onesandwich.html
@@ -4,14 +4,49 @@
{% 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
+ {% 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 %}
Ingredients
{% for i in s.ingredients.all %}
- {{ 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 %}
+ {% 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