{% extends "base.html" %} {% import "/components/header.html" as header %} {% import "/components/footer.html" as footer %} {% import "competition/card.html" as card %} {% import "/components/profile_card.html" as profile_card %} {% import "components/profile_nav.html" as profile_nav %} {% block title %}Выбор {% if competition.type_ == 'artist' %}художников{%else%}картин{%endif%} на конкурс "{{competition.title}}"{% endblock %} {% block content %} {{ header.section(user) }}
{{ profile_card.profile_card(user) }}
{{ profile_nav.profile_nav(user, 'competitions') }}

{{competition.title}}

Открыть страницу конкурса {% if competition.status == 0 %}
Остановить прием заявок на конкурс
{% elif competition.status == 1 %}
Завершить конкурс
{% elif competition.status == 2 %}
Конкурс завершен
{%endif%}
{% if competition.type_ == 'artist' %} {% for member in members %}

{{member.user.living_place or ''}}

{{member.user.username or ''}}

{% if 'user' in member.user.roles %}{{member.user.grade or ''}}{% endif %}

Картины {{member.post_count if member.post_count is not none else 0}}

{% if competition.type_ == 'artist' %} {% if member.status%}
Проходит
{%else%}
На рассмотрении
{% endif %} {% endif %} {% set comp = competition._id | string %} {% set mem = member.user._id | string %} {% if user.notify %} {% set notify = user.notify | selectattr('read') | list %} {% for n in notify if n.link is not none %} {% if comp in n.link and mem in n.link %} * {% endif %} {% endfor %} {% endif %}
{% endfor %} {% else %} {% for post in posts %}
{{ post.title }}

{{post.user.living_place or ''}}

{{post.user.username}}

{{post.grade or ''}}

{% if post.nomination %}
Номинация: {{post.nomination}}
{% endif %}

{{post.title}}

{{post.size}}

{{post.description}}

Подробнее

{{ (post.competition.generation_time.strftime('%d.%m.%Y')) if post.competition else ''}}

{% endfor %} {% endif %}
{{ footer.section(user) }} {% endblock %} {% block head %} {{ header.style() }} {{card.style()}} {{ profile_nav.style() }} {{ footer.style() }} {% endblock %}