From 2d55db52ce0ecf980f901c9a52fc09a05cc71a3193e2614d5d1e6c06ba34f890 Mon Sep 17 00:00:00 2001 From: vladislav Date: Tue, 1 Sep 2026 22:47:12 -0400 Subject: [PATCH] feat --- templates/profile/delivery_history.html | 155 +++++++++++++++++++++++- 1 file changed, 154 insertions(+), 1 deletion(-) diff --git a/templates/profile/delivery_history.html b/templates/profile/delivery_history.html index d316f33..a527386 100644 --- a/templates/profile/delivery_history.html +++ b/templates/profile/delivery_history.html @@ -44,7 +44,7 @@ {{doc.status}} {% endif %} - {% if doc.type == 'exhibition' and doc.get('exhibition') %} + {% if doc.type == 'exhibition' and doc.get('exhibition') or doc.status == 'Продано' %}

{{doc.exhibition.title}}

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

@@ -54,6 +54,57 @@ {{doc.receiver.username}}
+ {% if doc.get('user') and user._id == doc.user._id%} +
+ Показать контакты + +
+{% endif %} {% else %} {% if doc.address %}

Адрес: {{doc.address}}

@@ -75,6 +126,57 @@ {{doc.sender.username}} + {% if user._id != doc.sender._id%} +
+ Показать контакты + +
+{% endif %} {% endif %} {% if doc.receiver %}
@@ -85,6 +187,57 @@ +7 *** *** {{ doc.receiver.phone[-4:] }}
+ {% if user._id != doc.receiver._id%} +
+ Показать контакты + +
+{% endif %} {% endif %} {% endif %}