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

{{ author.username }} {{ author.username }} {% if current_user.is_staff and current_user.id != author.id %}
{% else %} {% if not author.is_active %} Read-only {% endif %} {% endif %} {% if current_user.is_authenticated and current_user.id == author.id %} Редактировать профиль {% 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 not is_system_user and current_user.is_authenticated and author.id != current_user.id -%}
Подписаться на новые рассказы:
{%- endif %}
{% if not is_system_user or author.id == current_user.id %}
{{ author_profile_links(author, 'profile') }}
{% endif %}
{% if series %}

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

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

{% if not is_system_user %}Рассказы автора{% else %}Чьи-то рассказы{% endif %} ({{ stories|length }})

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

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

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