Files
openfoodnetwork/app/views/spree/shared/_line_item_name.html.haml
Ahmed Ejaz 983addff0d 12777: use unit_to_display method for variant unit
- This method prioritize display_as and after that considers options_text
2024-09-05 10:49:45 +02:00

7 lines
231 B
Plaintext

%h5.inline-header
= "#{line_item.product.name}"
- unless line_item.product.name.include? line_item.name_to_display
%span= "- #{line_item.name_to_display}"
- if line_item.unit_to_display
= "(#{line_item.unit_to_display})"