From 2b370e2316ce5f41fa711afc53a66e465803a98999f444f3f1d86a6dbe8f652c Mon Sep 17 00:00:00 2001 From: Vladislav Date: Wed, 15 Apr 2026 14:04:49 +0200 Subject: [PATCH] =?UTF-8?q?Bot=20commit:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D1=84=D0=B0=D0=B9=D0=BB=20templates/compe?= =?UTF-8?q?tition/member/index.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/competition/member/index.html | 227 ++++++++++++++++++++++++ 1 file changed, 227 insertions(+) create mode 100644 templates/competition/member/index.html diff --git a/templates/competition/member/index.html b/templates/competition/member/index.html new file mode 100644 index 0000000..21e631a --- /dev/null +++ b/templates/competition/member/index.html @@ -0,0 +1,227 @@ +{% 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 %}