Add user facebook images to supplier main board
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
Ember.Handlebars.registerHelper 'image_tag', (path, params..., options={})->
|
||||
options.alt ||= ''
|
||||
new Handlebars.SafeString "<img src=\"/assets/#{path}\" alt=\"#{options.alt}\" >"
|
||||
Ember.Handlebars.registerBoundHelper 'image_tag', (path, params..., options={})->
|
||||
alt = options.hash.alt ||= ''
|
||||
image_path = if path.substring(0,4) == 'http' then path else "/assets/#{path}"
|
||||
new Handlebars.SafeString "<img src=\"#{image_path}\" alt=\"#{alt}\" title=\"#{alt}\" >"
|
||||
|
||||
Reference in New Issue
Block a user