travis-web/app/routes/settings/index.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

12 lines
248 B
CoffeeScript

`import TravisRoute from 'travis/routes/basic'`
Route = TravisRoute.extend
titleToken: 'Settings'
model: ->
repo = @modelFor('repo')
repo.fetchSettings().then (settings) ->
repo.set('settings', settings)
`export default Route`