{% load i18n fluent_blogs_comments_tags %}{# fluent_blogs_comments_tags == django.contrib.comments library, but makes it optional #}
{% with comment_count=object.comments.count %}
{% if comment_count %}
{% blocktrans with entry_title=object.title count comment_count=comment_count %}{{ comment_count }} comment to {{ entry_title }}{% plural %}{{ comment_count }} comments to {{ entry_title }}{% endblocktrans %}
{% render_comment_list for object %}
{% if not object.comments_are_open %}
{% trans "Comments are closed." %}
{% endif %}
{% else %}
{# no comments yet, invite #}
{% if object.comments_are_open %}
{% trans "Leave a reply" %}
{# include the empty list, so the
is there for Ajax code #}
{% render_comment_list for object %}
{% endif %}
{% endif %}
{% blocktrans with entry_title=object.title count comment_count=comment_count %}{{ comment_count }} comment to {{ entry_title }}{% plural %}{{ comment_count }} comments to {{ entry_title }}{% endblocktrans %}
{% render_comment_list for object %} {% if not object.comments_are_open %}{% trans "Comments are closed." %}
{% endif %} {% else %} {# no comments yet, invite #} {% if object.comments_are_open %}{% trans "Leave a reply" %}
{# include the empty list, so the