From b72895bed11e75bdfaf24d6943570f536c507d25cbe529a01e317118c8726659 Mon Sep 17 00:00:00 2001 From: Vladislav Date: Tue, 30 Jun 2026 19:13:52 -0400 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/posts?= =?UTF-8?q?/profile=5Fcard.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/posts/profile_card.html | 100 ++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 templates/posts/profile_card.html diff --git a/templates/posts/profile_card.html b/templates/posts/profile_card.html new file mode 100644 index 0000000..6d41126 --- /dev/null +++ b/templates/posts/profile_card.html @@ -0,0 +1,100 @@ +{% import "components/share.html" as share %} + +{% macro section(post, index=100, user=False) -%} +
+ +
+ + + +
+

{{post.title}}

+
+
+

{{post.size}}

+ +
+

{{post.price}}

+
+

{% if user and user._id == post.user._id %}Опубликовать повторно{% endif %}

+

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

+
+
+ {% if user and user._id == post.user._id %} +
+ Редактировать + +
+ {% endif %} + {{ share.share('/paintings/{}'.format(post._id), post.title, '/b/posts/{}'.format(post.medias_original[0])) }} +
+
+{%- endmacro %} +{% macro scrips() -%} + +{%- endmacro %} +{% macro style() -%} + +{%- endmacro %} \ No newline at end of file