mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
14 lines
487 B
CoffeeScript
14 lines
487 B
CoffeeScript
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
|