{% extends "dictionary/base.html" %} {% load filters functions i18n %} {% block title %}{% print_topic_title %}{% endblock %} {# Remove has-entries for permalinks to show full content right away #} {% block bodyclass %}{% if not entry_permalink %} has-entries{% endif %}{% endblock %} {% block bodyattr %}{% if user.is_authenticated and user.pinned_entry_id %} data-pin="{{ user.pinned_entry_id }}"{% endif %}{% endblock %} {% block description %}{{ first_entry.content|truncatechars:150 }}{% endblock %} {% block metatags %} {% with desc=first_entry.content|truncatechars:150 %} {% endwith %} {% endblock %} {% block content %} {% with valid=topic.valid populated=topic.has_entries banned=topic.is_banned %}
{% if topic.exists %}

{{ topic.title }}

{% if mode == "search" %}[{% trans "search keywords" %}: {{ request.GET.keywords.strip }}] {% elif mode == "links" %}[{% trans "links" %}] {% elif mode == "history" %}[{% trans "today in history" %}: {{ request.GET.year.strip }}] {% elif mode == "novices" %}[{% trans "novices" %}] {% elif mode == "following" %}[{% trans "activity" %}] {% elif mode == "recent" %}[{% trans "followups" %}] {% elif mode == "acquaintances" %}[{% trans "acquaintances" %}] {% elif mode == "answered" %}[{% trans "with replies" %}] {% elif mode == "images" %}[{% trans "images" %}]{% endif %}
{% if topic.is_pinned %} {% trans "This topic is pinned" %} {% endif %}
{% with mirrors=topic.mirrors.all %} {% if mirrors %}
{% trans "topics with the same title:" %}
{% endif %} {% endwith %} {% if populated %}
{% include "dictionary/includes/paginaton.html" with paginator=page_obj classlist="pagination" %}
{% endif %} {% if topic.media and page_obj.number == 1 %}{{ topic.media|mediastamp:mode }}{% endif %}
{% if populated %} {# previous entries button #} {% if previous_entries_count > 0 %} {% blocktrans asvar prev count previous_count=previous_entries_count %}{{ previous_count }} more entry{% plural %}{{ previous_count }} more entries{% endblocktrans %} {{ prev }} {% endif %} {# end of previous entries button #} {# list of entries #} {# end of list of entries #} {# subsequent entries button #} {% if subsequent_entries_count > 0 %} {% blocktrans asvar subsq count subsequent_count=subsequent_entries_count %}{{ subsequent_count }} more entry{% plural %}{{ subsequent_count }} more entries{% endblocktrans %} {{ subsq }} {% endif %} {# end of subsequent entries button #} {% else %} {# Topic does exist but has no entries #}

{% trans "no such thing known to humankind." %}

{% if not banned %} {% include "dictionary/includes/forms/wish.html" %} {% endif %} {% endif %} {% else %} {# Topic does not exist #}

{{ topic.title }}

{% trans "no such thing known to humankind." %}

{% if not valid %}

{% trans "curses to such a topic anyway." %}

{% else %} {% include "dictionary/includes/forms/wish.html" %} {% endif %} {% endif %}
{# add entry form & user related modal import #} {% if user.is_authenticated %} {% include "dictionary/includes/send_message_modal.html" %} {% include "dictionary/includes/block_user_modal.html" %} {% if not banned and valid %} {% if drafts.exists %}
{% endif %}
{% if not user.is_novice %} {% endif %}
{% include "dictionary/includes/editor_buttons.html" %} {% load widget_tweaks %}
{% csrf_token %} {% autoescape off %} {# Notice: This string gets escaped in render_field! #} {% blocktrans asvar text_placeholder with title=topic.title %}express your thoughts on {{ title }}..{% endblocktrans %} {% endautoescape %} {% trans "Entry content area" as area_label %} {% render_field form.content placeholder=text_placeholder id="user_content_edit" class="entry_editor form-control allowsave expandable" rows="5" spellcheck="true" aria-label=area_label %}
{% endif %} {% endif %} {# end of add entry form & user related modal import #} {% endwith %} {% endblock %} {% block rightframe %} {% if topic.exists %} {% with categories=topic.category.all %} {% if categories or perms.dictionary.can_suggest_categories %}

{% trans "belonging channels" %}

{% if categories %} {% else %} {% trans "this topic is yet to be classified" %} {% endif %} {% if not user.is_novice and perms.dictionary.can_suggest_categories and topic.allow_suggestions %} {% endif %}
{% endif %} {% endwith %} {% endif %} {% endblock %}