summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2024-02-09 17:29:34 -0600
committerHombreLaser <sebastian-440@live.com>2024-02-09 17:29:34 -0600
commit1fdacee131a6840329fd6746cd7511c3fb16b829 (patch)
tree9713982aed945300ca5508cdf005a75943cb97d4 /templates
parent2a16eeb8df3fab2715b95efbbdc69b7c03a6a746 (diff)
Fix comments rendering
Diffstat (limited to 'templates')
-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>