{% extends "base.html" %} {% import "/components/header.html" as header %} {% import "/components/footer.html" as footer %} {% import "components/share.html" as share %} {% block title %}Выставки{% endblock %} {% block content %} {{ header.section(user) }}

Выставки

{% for exhibition in exhibitions %} {% set link="/exhibition/{}".format(exhibition._id) %}
{% if link %} {% endif %}
{{ exhibition.title }}
{% if link %}
{% endif %}
{% if link %} {% endif %}
{% if now > exhibition.date_finish %} Закончилась {% elif now > exhibition.datetime_start %} Началась {% else %} Формируется {% endif %}

{{ exhibition.title }}

{{ exhibition.topic }}

{% set user = exhibition.get('user') %}
{% if user %} {{ user.username | e }}

{{ user.username | e }}

{% endif %}
{% if exhibition.get('tizer_file_id') or exhibition.get('tizer_link') %}
Релиз выставки {%endif%} Список картин

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

С {{ ( exhibition.datetime_start.strftime('%d.%m.%Y')) if exhibition.datetime_start else ''}} По {{ ( exhibition.date_finish.strftime('%d.%m.%Y')) if exhibition.date_finish else ''}}
{% if link %} {% endif %}
{{ share.share('/exhibition/{}'.format(exhibition._id), exhibition.title, '/b/exhibition/{}'.format(exhibition.poster_file_id), "Приглашаем на выставку") }}

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

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