Skip to content

Commit

Permalink
Hide shippint instructions field from order after leaving escrow (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzernik authored Aug 1, 2022
1 parent a7d9409 commit 7e43d28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/order.html.tera
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@
<p><b>Seller credit amount</b>: {{ order.amount_owed_sat }} sats - {{ order.amount_owed_sat - order.seller_credit_sat }} sats = {{ order.seller_credit_sat }} sats</p>
{% 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 %}
<p><b>Shipping instructions</b>: <pre>{{ order.shipping_instructions }}</pre></p>
{% endif %}
{% endif %}
{% endif %}

{% if order.paid %}
<p><b>Payment time</b>: {{ (order.payment_time_ms / 1000) | int | date(format="%Y-%m-%d %H:%M") }}</p>
Expand Down

0 comments on commit 7e43d28

Please sign in to comment.