mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
fix ampersand problem using ng-bind-html
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
{{ orderCycle.producers.length }}
|
||||
= t('.suppliers')
|
||||
%span{ ng: { hide: 'orderCycle.producers.length > 3', bind: 'orderCycle.producerNames' } }
|
||||
%td.coordinator{ ng: { show: 'columns.coordinator.visible' } }
|
||||
{{ orderCycle.coordinator.name }}
|
||||
%td.coordinator{ ng: { show: 'columns.coordinator.visible', bind: { html: 'orderCycle.coordinator.name'} } }
|
||||
%td.shops{ ng: { show: 'columns.shops.visible' } }
|
||||
%span{'ofn-with-tip' => '{{ orderCycle.shopNames }}', ng: { show: 'orderCycle.shops.length > 3' } }
|
||||
{{ orderCycle.shops.length }}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
%th.hide=t('admin.variant_overrides.index.hide')
|
||||
%tbody{ ng: { repeat: 'product in filteredProducts | limitTo:productLimit' } }
|
||||
%tr{ id: "v_{{variant.id}}", ng: { repeat: 'variant in product.variants | inventoryVariants:hub_id:views' } }
|
||||
%td.producer{ ng: { bind: '::producersByID[product.producer_id].name'} }
|
||||
%td.producer{ ng: { bind: { html: '::producersByID[product.producer_id].name'} } }
|
||||
%td.product{ ng: { bind: '::product.name'} }
|
||||
%td.variant
|
||||
%span{ ng: { bind: '::variant.display_name || ""'} }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
%tr.product.even
|
||||
%td.producer{ ng: { show: 'columns.producer.visible', bind: '::producersByID[product.producer_id].name'} }
|
||||
%td.producer{ ng: { show: 'columns.producer.visible', bind: { html: '::producersByID[product.producer_id].name'} } }
|
||||
%td.product{ ng: { show: 'columns.product.visible', bind: '::product.name'} }
|
||||
%td.sku{ ng: { show: 'columns.sku.visible' } }
|
||||
%td.price{ ng: { show: 'columns.price.visible' } }
|
||||
|
||||
Reference in New Issue
Block a user