mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 14:43:59 -05:00
12 lines
No EOL
357 B
CoffeeScript
12 lines
No EOL
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)
|
|
] |