diff options
author | luxagraf <sng@luxagraf.net> | 2014-11-14 02:12:25 +0000 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2014-11-14 02:12:25 +0000 |
commit | 69914ec32aff7c14e1bb370ebb5822b7fd2cac96 (patch) | |
tree | f0cc759c5465855fc9a04207ca1751405b678bf0 | |
parent | af356c15e2cb6e467bbf452ede9d5a5385584a97 (diff) |
couple of quick bugfixes in comment template
-rw-r--r-- | design/templates/comments/list.html | 4 | ||||
-rw-r--r-- | design/templates/details/entry.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/design/templates/comments/list.html b/design/templates/comments/list.html index 1fb1189..f6eab48 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="{%gravatar_hash comment.email %}"> - <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 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><a href="{{comment.url}}" rel="nofollow" target="_blank">{{comment.name}}</a></b></span> diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html index 948a9b8..02dcbe6 100644 --- a/design/templates/details/entry.html +++ b/design/templates/details/entry.html @@ -55,7 +55,7 @@ class="{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%en {% get_comment_count for object as comment_count %}. {%if comment_count > 0%} -<p class="comments--header">{{comment_count}} Comments</p> +<p class="comments--header">{{comment_count}} Comment{{ comment_count|pluralize }}</p> {% render_comment_list for object %} {%endif%} {% render_comment_form for object %} |