travis-web/app/routes/auth.coffee
2015-02-03 09:48:22 +01:00

24 lines
412 B
CoffeeScript

`import TravisRoute from 'travis/routes/basic'`
Route = TravisRoute.extend
needsAuth: false
renderTemplate: ->
$('body').attr('id', 'auth')
@render 'auth.signin'
deactivate: ->
@controllerFor('auth').set('redirected', false)
actions:
afterSignIn: ->
@transitionTo('main')
return true
redirect: ->
if @signedIn()
@transitionTo('main')
`export default Route`