summaryrefslogtreecommitdiff
path: root/templates/comments/list.html
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2021-11-06 09:42:47 -0400
committerlxf <sng@luxagraf.net>2021-11-06 09:42:47 -0400
commitd9f51299809bfb6b3ac589b7c42016d0ef240299 (patch)
treeaa5f945e82fdbf1b66aca82fe5122f6ff5a12eb9 /templates/comments/list.html
parentdde9914dbbc6cda18ba59024065727c8dc6bcdf4 (diff)
moved templates to top level directory
Diffstat (limited to 'templates/comments/list.html')
-rw-r--r--templates/comments/list.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/comments/list.html b/templates/comments/list.html
new file mode 100644
index 0000000..7c43a9a
--- /dev/null
+++ b/templates/comments/list.html
@@ -0,0 +1,27 @@
+{% load gravatar_local %}
+{% load typogrify_tags %}
+{% load markdown%}
+{% load bleach_tags %}
+{% load nofollow %}
+{% load comments %}
+ <div>
+ {% for comment in comment_list %}
+ <div id="comment-{{ comment.id }}" class="comment-card-wrapper">
+ <div class="comment-card-hed">
+ <noscript class="datahashloader" data-hash="{% if comment.user_email == "sng@luxagraf.net" %}d64f4854965b2b1c3ecafee4b2a66fac{%else%}{%if comment.user_email|has_grav %}{%gravatar_hash comment.user_email %}{%else%}default{%endif%}{%endif%}">
+ <img class="comment-card-image" {% if comment.user_email == "sng@luxagraf.net" %}src="https://images.luxagraf.net/gravcache/d64f4854965b2b1c3ecafee4b2a66fac.jpg" {%else%} {%if comment.user_email|has_grav %} src="https://images.luxagraf.net/gravcache/{%gravatar_hash comment.email %}.jpg"{%else%}src="https://images.luxagraf.net/gravcache/default.jpg"{%endif%}{%endif%} alt="gravatar icon for {{comment.name}}" />
+ </noscript>
+ <span class="comment-card-commenter">{%if comment.url %}<a href="{{comment.url}}" rel="nofollow" target="_blank">{{comment.name}}</a>{% else %}{{comment.name}}{%endif%}</span>
+ <span class="card-smcaps">{{comment.submit_date|date:"F d, Y"}} at {{comment.submit_date|date:"g:i a"}}</span>
+ </div>
+
+ <div class="comment-card-body">
+ {% if comment.user_email == "sng@luxagraf.net" %}
+ {{comment.comment|markdown|safe|smartypants}}
+ {%else%}
+ {{comment.comment|markdown|bleach|nofollow|safe|smartypants}}
+ {%endif%}
+ </div>
+ </div>
+ {% endfor %}
+ </div>