summaryrefslogtreecommitdiff
path: root/templates/comments
diff options
context:
space:
mode:
Diffstat (limited to 'templates/comments')
-rw-r--r--templates/comments/index.jinja33
1 files changed, 26 insertions, 7 deletions
diff --git a/templates/comments/index.jinja b/templates/comments/index.jinja
index 08f8cfb..daaf5ea 100644
--- a/templates/comments/index.jinja
+++ b/templates/comments/index.jinja
@@ -1,9 +1,28 @@
<div id="comment-section" class="comment-section">
- {% for comment in page.items %}
- <div id="{{comment.id}}" class="comment">
- <textarea rows="4" cols="50" disabled="true">
- {{ comment.content }}
- </textarea>
- </div>
- {% endfor %}
+ {% for comment in page.items %}
+ <div id="comment-{{comment.id}}" class="comment">
+ <section class="comment-meta">
+ <div class="author">
+ {% if comment.author is eq('') %}
+ Anonymous said:
+ {% else %}
+ {{ comment.author }} said:
+ {% endif %}
+ </div>
+ <div class="date">
+ {{ comment.created_at.date().isoformat() }}
+ </div>
+ </section>
+ <textarea rows="4" cols="50" disabled="true">
+ {{ comment.content }}
+ </textarea>
+ <section class="replies-thread">
+ <div class="reply-tag">
+ <input class="replies-button" type="button" value="Replies" />
+ </div>
+ <div id="comment-replies-{{ comment.id }}" class="date">
+ </div>
+ </section>
+ </div>
+ {% endfor %}
</div>