{% extends "base.html" %} {% import "/components/header.html" as header %} {% import "components/share.html" as share %} {% import "/components/footer.html" as footer %} {% block title %}{{competition.title}} | Картины | {{member.username}}{% endblock %} {% block content %} {{ header.section(user) }}
К участникам {% if competition.get('status',-1) == 2 %}
Закончился
{% elif competition.get('status',-1) == 1 %}
Идет отбор
{% else %}
Прием заявок
{% endif %}

{{competition.title}}

{{ share.share('/competition/{}'.format(competition._id), competition.title, '/b/competition/{}'.format(competition.poster_file_id), "Приглашаю на конкурс 🎨") }}
{% if competition.get('status',-1) == 0%} Отправить заявку на конкурс {% endif %}

{{member.living_place or ''}}

{{member.username or ''}}

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

{% if competition.get('status',-1) == 2%}

Картин отобрано: {{ posts|length }}

{% else %}

Картин выставлено: {{ posts|length }}

{% endif %} {% if competition.type_ == 'artist' %} {% if member.status %}
Проходит
{%else%}
На рассмотрении
{%endif%} {% endif %}
{% for post in posts %} {% if competition.get('status',-1) == 2%} {% if post.status == 'Проходит'%}
{{ post.title }}
{% if post.status == 'Проходит'%}
Проходит
{% else %}
На рассмотрении
{% endif %} {% if 'galerist' in member.roles %}

{{post.city or ''}}

{{post.author or ''}}

{{post.grade or ''}}

{% endif %}

{{post.title}}

{{post.description}}

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

{% endif %} {% else %}
{{ post.title }}
{% if competition.type_ != 'artist' %} {% if post.status == 'Проходит'%}
Проходит
{% else %}
На рассмотрении
{% endif %} {% endif %} {% if post.nomination %}
Номинация: {{post.nomination}}
{% endif %} {% if 'galerist' in member.roles %}

{{post.city or ''}}

{{post.author or ''}}

{{post.grade or ''}}

{% endif %}

{{post.title}}

{{post.description}}

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

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