Sha256: 6a475ba0eaa1fdb2df1fad3425d33701c8896130b5b281fe6900f2278c3b0a1c
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 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.name === 'color') { return optionValue.name } else { return optionValue.presentation } })
Version data entries
3 entries across 3 versions & 1 rubygems