{% extends base %} {% from 'macro.html' import breadcrumbs with context %} {% block content %}
{{- breadcrumbs(current=('Автор: ' if author.stories.count() > 0 else 'Читатель: ') + author.username) }}

{{ author.username }} {{ author.username }} {% if current_user.is_staff and not is_system_user and current_user.id != author.id %} {# {% if author.approved %}Проверен{% else %}Не проверен{% endif %} #}
{% else %} {% if not author.is_active %} Read-only {% endif %} {% endif %} {% if current_user.is_authenticated and current_user.id == author.id %} Редактировать профиль {% endif %}

{% if not is_system_user %}

{% if stories|length > 0 %} Написал {{ ngettext("%(num)d story", "%(num)d stories", stories|length) }} {% else %} Пока ничего не написал {% endif %} и {% if comments_count > 0 %} оставил {{ ngettext("%(num)d comment", "%(num)d comments", comments_count) }}. {% else %} ничего не комментировал. {% endif %} {% if author.favorites|length > 0 %} Занес в избранное {{ ngettext("%(num)d story", "%(num)d stories", author.favorites|length) }}. {% endif %}

{{ author.bio_as_html }}

{% else %}
{{ html_block('system_user') }}
{% endif %} {% with contacts=author.contacts.select().order_by('c.id')[:] %}{% include 'includes/author_contacts.html' %}{% endwith %}
{% if series %}

Сборники автора ({{ series|length }})

{% include "includes/series.html" %} {% endif %} {% if not is_system_user or stories %}

Рассказы автора

{% include "includes/stories.html" %} {% endif %}
{% if comments_count > 0 %}

Комментарии автора ({{ comments_count }})

{% include "includes/story_comments_list.html" %}
{% include "includes/comments_pagination_author_overview.html" %} {% endif %}
{{- breadcrumbs(current=('Автор: ' if author.stories.count() > 0 else 'Читатель: ') + author.username) }}
{% endblock %}