mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
17 lines
442 B
CoffeeScript
17 lines
442 B
CoffeeScript
View = require 'views/kinds/RootView'
|
|
template = require 'templates/account/home'
|
|
{me} = require 'lib/auth'
|
|
User = require 'models/User'
|
|
AuthModalView = require 'views/modal/auth_modal'
|
|
|
|
module.exports = class AccountHomeView extends View
|
|
id: 'account-home-view'
|
|
template: template
|
|
|
|
constructor: (options) ->
|
|
super options
|
|
return unless me
|
|
|
|
afterRender: ->
|
|
super()
|
|
@openModelView new AuthModalView if me.isAnonymous()
|