summaryrefslogtreecommitdiff
path: root/design/templates/comments
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-10-10 08:03:52 -0400
committerluxagraf <sng@luxagraf.net>2016-10-10 08:03:52 -0400
commit4f139b09fd16cd0dd59788d1d37beae4cf184fb6 (patch)
tree5221620658537523089b6c05fa825c5fd768fba2 /design/templates/comments
parent3982aeb761dabbf7ec84e51813bf9b07531d332a (diff)
started work on light version of homepage and made it possble for me to
put links in comments
Diffstat (limited to 'design/templates/comments')
-rw-r--r--design/templates/comments/list.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/design/templates/comments/list.html b/design/templates/comments/list.html
index e8057dc..c311a7c 100644
--- a/design/templates/comments/list.html
+++ b/design/templates/comments/list.html
@@ -7,8 +7,8 @@
<div class="comments--wrapper">
{% for comment in comment_list %}
<div id="comment-{{ comment.id }}" class="comment">
- <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="gravatar" {% 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 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="gravatar" {% 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>
<div class="comment--head">
<span class="who"><b>{%if comment.url %}<a href="{{comment.url}}" rel="nofollow" target="_blank">{{comment.name}}</a>{% else %}{{comment.name}}{%endif%}</b></span>
@@ -16,7 +16,11 @@
</div>
<div class="comment--body">
+ {% if comment.user_email == "sng@luxagraf.net" %}
+ {{comment.comment|removetags:"p"|markdown|safe|smartypants}}
+ {%else%}
{{comment.comment|removetags:"p"|markdown|bleach|nofollow|safe|smartypants}}
+ {%endif%}
</div>
</div>
{% endfor %}