codecombat/app/views/user/IdentifyView.coffee

15 lines
487 B
CoffeeScript
Raw Normal View History

2015-04-30 16:35:21 -04:00
RootView = require 'views/core/RootView'
{me} = require 'core/auth'
template = require 'templates/user/identify-view'
module.exports = class IdentifyView extends RootView
id: 'identify-view'
template: template
getRenderData: ->
context = super()
context.callbackID = @getQueryVariable 'id'
context.callbackURL = @getQueryVariable('callback') + "?id=#{context.callbackID}&username=#{me.get('name')}"
context.callbackSource = @getQueryVariable 'source'
context