Add primary comment support

This commit is contained in:
2012-10-04 21:49:33 +02:00
parent 6039dd7a8d
commit d30bb18e43
10 changed files with 232 additions and 70 deletions

View File

@@ -14,4 +14,20 @@
<textarea name="content" class="mceAdvanced">{{ content }}</textarea>
<input type="submit" name="edit" value="Edit" /><input type="button" name="preview" value="Preview" onClick="previewPost();"/><input type="submit" name="cancel" value="Cancel" />
</form>
<div class="comments">
{% for comment_list in comments %}
{% for comment in comment_list %}
<div class="comment">
<div class="infos">
<a href="/comment/edit/{{ comment.id }}">#{{ comment.id }}</a> <span class="author">{{ comment.author }}</span> <span class="mail">{{ comment.email|default:"no mail" }}</span> <span class="date">{{ comment.date|date:"D d M Y" }}<span> <a href="/comment/delete/{{ comment.id }}">delete</a>
</div>
<div class="content">
{{ comment.the_comment }}
</div>
{% endfor %}
{% for comment in comment_list %}
</div>
{% endfor %}
</div>
{% endfor %}
{% endblock %}