major usability improvements

This commit is contained in:
2015-08-18 16:00:10 +02:00
parent 9cadc3e94f
commit 8a5c2e5b74
47 changed files with 423 additions and 178 deletions
@@ -2,6 +2,6 @@ Ember.Handlebars.helper 't', (path, params..., options)->
toptions = options.hash
if params.length and typeof(params[0].serialize) is 'function'
$.extend toptions, params[0].serialize()
text = t(path, options.hash)
tag = if options.hash.bare then text else "<span data-t='#{path}' class='translation' data-t-attributes='#{JSON.stringify(options.hash)}'>#{text}</span>"
text = t(path, toptions)
tag = if options.hash.bare then text else "<span data-t='#{path}' class='translation' data-t-attributes='#{JSON.stringify(toptions)}'>#{text}</span>"
tag.htmlSafe()