Sha256: c4d09b514cd78338c8cb1e32dcd2d4ed550e7c82647a8168cf231d923d00b3f7
Contents?: true
Size: 582 Bytes
Versions: 51
Compression:
Stored size: 582 Bytes
Contents
Handlebars.registerHelper('t', function (key) { if (Spree.translations[key]) { return Spree.translations[key] } else { console.error('No translation found for ' + key + '. Does it exist within spree/admin/shared/_translations.html.erb?') } }) Handlebars.registerHelper('edit_product_url', function (productId) { return Spree.routes.edit_product(productId) }) Handlebars.registerHelper('name_or_presentation', function (optionValue) { if (optionValue.option_type_name === 'color') { return optionValue.name } else { return optionValue.presentation } })
Version data entries
51 entries across 51 versions & 1 rubygems