[table] Tax category: display None instead of blank

This commit is contained in:
David Cook
2023-07-06 09:51:27 +10:00
committed by Jean-Baptiste Bellet
parent 51189a3138
commit ea93800ee6

View File

@@ -41,7 +41,7 @@
%td.align-left
.line-clamp-1= product.taxons.map(&:name).join(', ')
%td.align-left
.line-clamp-1= product.tax_category&.name
.line-clamp-1= product.tax_category&.name || "None" # TODO: convert to dropdown, else translate hardcoded string.
%td.align-left
.line-clamp-1= product.inherits_properties ? 'YES' : 'NO' #TODO: consider using https://github.com/RST-J/human_attribute_values, else use I18n.t (also below)
- product.variants.each do |variant|