{%- def "comment" %}
{%- if comment.commenter_url %} gravatar {%- else %} gravatar {%- endif %}
{%- if comment.commenter_url %} ${comment.user.display_name or comment.commenter_name} {%- else %} ${comment.user.display_name or comment.commenter_name} {%- endif %} ${localize:comment.time.date} ${comment.time % 'hh:mm a'}
{% markup comment.text as (comment.format or commentobject.markup or 'text') %} {%- if commentobject.allow_new %} {%- endif %}
{%- if commentobject.allow_new %} {%- endif %} {%- if commentgraph[comment.id] %}
{%- for comment in commentgraph[comment.id] %} {%- call "comment" %} {%- endfor %}
{%- endif %}
{%- enddef %}
{%- if .permissions.admin %}
{%- endif %} {%- if commentobject.allow_new and not commentobject.hide %}
{%- endif %} {%- if not commentobject.hide %} {%- with numcomments=len:comments %}
{% if not commentobject.allow_new %} {% trans %}Comments disabled{% end %} {% else %} {%- if numcomments == 0 %} {%- elif numcomments == 1 %} {% trans %}1 Comment{% end %} {%- else %} ${numcomments} {% trans %}comments{% end %} {%- endif %} {%- endif %}
{%- endwith %} {%- if comments %} {% cache for 1d key [commentobject.id, commentobject.updates, bool:.user] %}
{%- for comment in commentgraph.root %} {%- call "comment" %} {%- endfor %}
{% endcache %} {%- endif %} {%- endif %}