Refactor for mobile deployment

This commit is contained in:
2014-08-19 12:44:15 +02:00
parent 268c5aabb9
commit 0e46633c73
27 changed files with 848 additions and 41 deletions
@@ -1,6 +1,6 @@
Ember.Handlebars.helper 'image_tag', (path, options={})->
alt = options.hash.alt || ''
image_path = if path.substring(0,4) == 'http' then path else "/assets/#{path}"
image_path = if path.substring(0,4) == 'http' then path else "#{$assets_path}#{path}"
extra_attributes = ''
extra_attributes += " width=\"#{options.hash.width}\"" if options.hash.width
extra_attributes += " height=\"#{options.hash.height}\"" if options.hash.height