Add supplier info popup

This commit is contained in:
2015-01-13 13:38:52 +01:00
parent a774b2fd90
commit 2f812ad52e
12 changed files with 68 additions and 24 deletions
@@ -1,4 +1,4 @@
Ember.Handlebars.helper 't', (path, params..., options)->
text = t(path)
tag = if options.hash.bare then text else "<span data-t='#{path}' data-t-attributes='{}'>#{text}</span>"
text = t(path, options.hash)
tag = if options.hash.bare then text else "<span data-t='#{path}' data-t-attributes='#{JSON.stringify(options.hash)}'>#{text}</span>"
tag.htmlSafe()