{% extends "motion/base.html" %} {% load i18n %} {% load generic_filters %} {% block head_title %}{{ block.super }}{% if entry.title %}: {{ entry.title }}{% else %}{% if entry.content %}: {{ entry.content|striptags|truncatechars:40 }}{% endif %}{% endif %}{% endblock %} {% block page_layout %}layout-two-column-right{% endblock %} {% block html_head %} {{ block.super }} {% endblock %} {% block feed %} {% endblock %} {% block beta_widgets %} {% include "motion/widgets/ads.html" %} {% if favorites %} {% include "motion/widgets/favorited.html" %} {% endif %} {{ block.super }} {% endblock %} {% block content_body %}
{% if comments %}

{% blocktrans count comments.total_results as count %} 1 Comment {% plural %} {{ count }} Comments {% endblocktrans %}

{% for comment in comments %} {% include "motion/assets/comment.html" %} {% endfor %}
{% endif %} {% if settings.allow_commenting %} {% if not moderation.user_is_blocked %}
{% if user.is_authenticated %}

{% trans "Leave a comment" %}

{% include "motion/assets/bits/userpic.html" %}
{% if form.errors.body %}
{{ form.errors.body|join:" " }}
{% endif %} {{ form.body }}
{% trans "Posting comment..." %}
{% else %}

{% spaceless %} {% url login as login_url %} {% url register as register_url %} {% blocktrans with request.group.display_name as group_name and request.path|urlencode as next %} Sign in or join {{ group_name }} to add a comment. {% endblocktrans %} {% endspaceless %}

{% endif %}
{% endif %} {% endif %}
{% endblock %}