{% extends "base.html" %} {% import "/components/header.html" as header %} {% import "/components/footer.html" as footer %} {% import "components/profile_card.html" as profile_card %} {% import "components/profile_nav.html" as profile_nav %} {% import "competition/list.html" as competition %} {% import "components/label.html" as label %} {% block title %}Отобранные картины | Выставка {{exhibition.title}}{% endblock %} {% block content %} {{ header.section(user) }}
{{ profile_card.profile_card(user) }}
{{ profile_nav.profile_nav(user, 'exhibitions') }}
Каталог картин {% set ids = posts | map(attribute='user._id') | list %} {% set uniq_count = ids | unique | list | length %} {% if uniq_count > 0 %} {% endif %}
Выставка {{exhibition.title}}
{% if now > exhibition.date_finish %} Закончилась {% elif now > exhibition.datetime_start %} Началась {% else %} Формируется {% endif %}

Выставка {{exhibition.title}}

{{exhibition.topic}}

Место проведения: {{ exhibition.get('place') }}

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

С {{ ( exhibition.datetime_start.strftime('%d.%m.%Y')) if exhibition.datetime_start else ''}} По {{ ( exhibition.date_finish.strftime('%d.%m.%Y')) if exhibition.date_finish else ''}}
{% for post in posts %}
{{post.title}}

{{post.title}}

{% if post.status=='Опубликована' %}
{{post.status}}
{% else %}
{{post.status}}
{% endif %}

Размер: {{post.size}}

Материал: {{post.material}}

Жанр: {{post.genre}}

{% if post.user %} {{ post.user.username | e }}

{{ post.user.username }}

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