Commit ae3cb2d6 authored by skv's avatar skv

coffee interpolation for template of user select

parent 0e4a8e23
...@@ -6,12 +6,12 @@ $ -> ...@@ -6,12 +6,12 @@ $ ->
avatar = gon.gravatar_url avatar = gon.gravatar_url
avatar = avatar.replace('%{hash}', md5(user.email)) avatar = avatar.replace('%{hash}', md5(user.email))
avatar = avatar.replace('%{size}', '24') avatar = avatar.replace('%{size}', '24')
markup = "<div class='user-result'>"
markup += "<div class='user-image'><img class='avatar s24' src='" + avatar + "'></div>" "<div class='user-result'>
markup += "<div class='user-name'>" + user.name + "</div>" <div class='user-image'><img class='avatar s24' src='#{avatar}'></div>
markup += "<div class='user-username'>" + user.username + "</div>" <div class='user-name'>#{user.name}</div>
markup += "</div>" <div class='user-username'>#{user.username}</div>
markup </div>"
userFormatSelection = (user) -> userFormatSelection = (user) ->
user.name user.name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment