Merge pull request #5889 from skv-headless/master
coffee interpolation for template of user select
This commit is contained in:
commit
2008361b8e
1 changed files with 6 additions and 6 deletions
|
@ -6,12 +6,12 @@ $ ->
|
|||
avatar = gon.gravatar_url
|
||||
avatar = avatar.replace('%{hash}', md5(user.email))
|
||||
avatar = avatar.replace('%{size}', '24')
|
||||
markup = "<div class='user-result'>"
|
||||
markup += "<div class='user-image'><img class='avatar s24' src='" + avatar + "'></div>"
|
||||
markup += "<div class='user-name'>" + user.name + "</div>"
|
||||
markup += "<div class='user-username'>" + user.username + "</div>"
|
||||
markup += "</div>"
|
||||
markup
|
||||
|
||||
"<div class='user-result'>
|
||||
<div class='user-image'><img class='avatar s24' src='#{avatar}'></div>
|
||||
<div class='user-name'>#{user.name}</div>
|
||||
<div class='user-username'>#{user.username}</div>
|
||||
</div>"
|
||||
|
||||
userFormatSelection = (user) ->
|
||||
user.name
|
||||
|
|
Loading…
Reference in a new issue