Show edit link in placement email if changes are allowed by shop

This commit is contained in:
Rob Harrington
2017-11-22 10:45:36 +11:00
parent f9af8edf27
commit 0c0e12e165

View File

@@ -3,7 +3,8 @@
%p.callout
= t("email_so_placement_explainer_html")
= t("email_so_edit_false_html",
- allow_changes = !!@order.distributor.allow_order_changes?
= t("email_so_edit_#{allow_changes}_html",
orders_close_at: l(@order.order_cycle.orders_close_at, format: "%a %b %d @ %l:%M%p"),
order_url: spree.order_url(@order))
= t("email_so_contact_distributor_html", distributor: @order.distributor.name, email: @order.distributor.email)