From 7e43d2819e1fbd347a6b62d58f856af81fa9b55b Mon Sep 17 00:00:00 2001
From: Jonathan Zernik
Date: Mon, 1 Aug 2022 12:17:36 -0700
Subject: [PATCH] Hide shippint instructions field from order after leaving
escrow (#552)
---
templates/order.html.tera | 3 +++
1 file changed, 3 insertions(+)
diff --git a/templates/order.html.tera b/templates/order.html.tera
index f21fdc6..0d9e30d 100644
--- a/templates/order.html.tera
+++ b/templates/order.html.tera
@@ -65,11 +65,14 @@
Seller credit amount: {{ order.amount_owed_sat }} sats - {{ order.amount_owed_sat - order.seller_credit_sat }} sats = {{ order.seller_credit_sat }} sats
{% endif %}
{% endif %}
+
+ {% if not order.shipped and not order.canceled_by_seller and not order.canceled_by_buyer %}
{% if user %}
{% if order.buyer_user_id == user.id or order.seller_user_id == user.id or admin_user %}
Shipping instructions:
{{ order.shipping_instructions }}
{% endif %}
{% endif %}
+ {% endif %}
{% if order.paid %}
Payment time: {{ (order.payment_time_ms / 1000) | int | date(format="%Y-%m-%d %H:%M") }}