Refactor for mobile deployment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user