travis-web/app/routes/profile.coffee
Piotr Sarnacki dfc22014a8 Set page titles relevant to page is loaded
I used ember-cli-document-title addon.
2015-02-17 14:35:59 +01:00

17 lines
385 B
CoffeeScript

`import TravisRoute from 'travis/routes/basic'`
Route = TravisRoute.extend
titleToken: 'Profile'
needsAuth: true
setupController: (controller, model) ->
@controllerFor('accounts').set('model', model)
renderTemplate: ->
$('body').attr('id', 'profile')
@_super.apply(this, arguments)
@render 'loading', outlet: 'left', into: 'profile'
`export default Route`