codecombat/app/views/account/home.coffee
2014-07-15 16:15:21 +02:00

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()