summaryrefslogtreecommitdiff
path: root/design/templates/comments/list.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-11-13 20:52:00 -0500
committerluxagraf <sng@luxagraf.net>2014-11-13 20:52:00 -0500
commitaf356c15e2cb6e467bbf452ede9d5a5385584a97 (patch)
treea5b382292276a49dcb952069ff3a35e34032f41b /design/templates/comments/list.html
parent29cdc473e0eab6611c1b4f702c5139315e016c70 (diff)
simplified gravatar code to use a single default image
Diffstat (limited to 'design/templates/comments/list.html')
-rw-r--r--design/templates/comments/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/design/templates/comments/list.html b/design/templates/comments/list.html
index 569a60a..1fb1189 100644
--- a/design/templates/comments/list.html
+++ b/design/templates/comments/list.html
@@ -8,7 +8,7 @@
{% for comment in comment_list %}
<div id="comment-{{ comment.id }}" class="comment">
<noscript class="datahashloader" data-hash="{%gravatar_hash comment.email %}">
- <img class="gravatar" src="https://images.luxagraf.net/gravcache/{%gravatar_hash comment.email %}.jpg" alt="gravatar icon for {{comment.name}}" />
+ <img class="gravatar" {% if comment.email = "sng@luxagraf.net" %}src="https://images.luxagraf.net/gravcache/d64f4854965b2b1c3ecafee4b2a66fac.jpg" {%else%} {%if comment.email|has_grav %}src="https://images.luxagraf.net/gravcache/default.jpg"{%else%}src="https://images.luxagraf.net/gravcache/{%gravatar_hash comment.email %}.jpg{%endif%}{%endif%}" alt="gravatar icon for {{comment.name}}" />
</noscript>
<div class="comment--head">
<span class="who"><b><a href="{{comment.url}}" rel="nofollow" target="_blank">{{comment.name}}</a></b></span>