From f218d8da3490055bef6b5f2bede1ade38028840f00fd2456952af6244ea52d5d 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/index.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/competition/index.html | 333 +++++++++++++++++++++++++++++++ 1 file changed, 333 insertions(+) create mode 100644 templates/competition/index.html diff --git a/templates/competition/index.html b/templates/competition/index.html new file mode 100644 index 0000000..86611c7 --- /dev/null +++ b/templates/competition/index.html @@ -0,0 +1,333 @@ +{% extends "base.html" %} +{% import "/components/header.html" as header %} +{% import "/components/footer.html" as footer %} +{% import "components/share.html" as share %} + +{% block title %}{{competition.title}} | Участники{% endblock %} + + +{% block content %} +{{ header.section(user) }} +
+
+
+
+
+
+
+ + {{ competition.title }} + +
+
+
+
+ + + + + Назад + + {% if competition.get('status',-1) == 2 %} +
+ Закончился +
+ {% elif competition.get('status',-1) == 1 %} +
+ Идет отбор +
+ {% else %} +
+ Прием заявок +
+ До {{ (competition.date_finish.strftime('%d.%m.%Y')) if competition.date_finish else ''}} + {% endif %} +
+
+

{{competition.title}}

+ {% if members|length > 0 %} +

Участники: {{ members|length }}

+ {% endif %} + {% if posts|length > 0 %} +

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

+ {% endif %} + {{ share.share('/competition/{}'.format(competition._id), competition.title, '/b/competition/{}'.format(competition.poster_file_id), "Приглашаю на конкурс 🎨") }} +
+
+
+ + Условия конкурса + + {% if competition.user._id == '681684390000000000000000'%} + + Задать вопрос + + {% endif %} + + {% if competition.get('status',-1) == 0%} + + Отправить заявку на конкурс + + {% endif %} +
+ {% if competition.get('status',-1) < 2 and members|length > 10 %} +
+ + + + + + {% for member in members %} + + {% endfor %} + +
+ {% endif %} +
+ +
+ {% if competition.get('status',-1) == 2%} + {% for post in posts %} +
+
+ + {{ post.title }} + +
+
+
+

{{post.title}}

+
+
+
+

{{post.city or ''}}

+

{{post.author}}

+

{{post.grade or ''}}

+
+
+

{{post.description}}

+

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

+
+
+ {% endfor %} + {% else %} + {% 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 %} +
+
+
+ {% endfor %} + {% endif %} +
+ + + + +
+
+ + +{{ footer.section() }} + +{% endblock %} + +{% block head %} + + + + + + + +{{ header.style() }} + + +{{ footer.style() }} + +{% endblock %}