mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-29 18:45:48 -05:00
15 lines
487 B
CoffeeScript
15 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
|