mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
13 lines
326 B
CoffeeScript
13 lines
326 B
CoffeeScript
define [
|
|
"base"
|
|
], (App) ->
|
|
App.controller "OnlineUsersController", ($scope, ide) ->
|
|
$scope.gotoUser = (user) ->
|
|
if user.doc? and user.row?
|
|
ide.editorManager.openDoc(user.doc, gotoLine: user.row + 1)
|
|
|
|
$scope.userInitial = (user) ->
|
|
if user.user_id == 'anonymous-user'
|
|
'?'
|
|
else
|
|
user.name.slice(0, 1)
|