mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-07 22:46:06 +00:00
This old gem implemented some functionality for handling nils which is no longer needed, as it's provided natively by Ruby with the &. operator.
26 lines
681 B
Plaintext
26 lines
681 B
Plaintext
.order-summary.text-small
|
|
%strong= order.shipping_method.name
|
|
.pad
|
|
.text-big
|
|
= t :order_pickup_time
|
|
%strong #{order.order_cycle.pickup_time_for(order.distributor)}
|
|
%p.text-small.text-skinny.pre-line
|
|
%em= order.shipping_method.description&.html_safe || ""
|
|
|
|
- if order.order_cycle.pickup_instructions_for(order.distributor).present?
|
|
%br
|
|
%p.text-small
|
|
%strong
|
|
= t :order_pickup_instructions
|
|
%br
|
|
#{order.order_cycle.pickup_instructions_for(order.distributor)}
|
|
|
|
- if order.special_instructions.present?
|
|
%br
|
|
%p.light.small
|
|
%strong
|
|
= t :order_special_instructions
|
|
%br
|
|
= order.special_instructions
|
|
|