mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
12 lines
357 B
CoffeeScript
12 lines
357 B
CoffeeScript
|
define [
|
||
|
"base"
|
||
|
], (App) ->
|
||
|
App.controller "ChatMessageController", ["$scope", "ide", ($scope, ide) ->
|
||
|
$scope.gravatarUrl = (user) ->
|
||
|
email = user.email.trim().toLowerCase()
|
||
|
hash = CryptoJS.MD5(email).toString()
|
||
|
return "//www.gravatar.com/avatar/#{hash}?d=mm&s=50"
|
||
|
|
||
|
$scope.hue = (user) ->
|
||
|
ide.onlineUsersManager.getHueForUserId(user.id)
|
||
|
]
|