rename goTo* to show*
This commit is contained in:
parent
96ef9eb5d3
commit
41ff493131
|
@ -41,7 +41,7 @@ Travis.reopen
|
||||||
|
|
||||||
signOut: ->
|
signOut: ->
|
||||||
@get('auth').signOut()
|
@get('auth').signOut()
|
||||||
@get('router').send('goToRoot')
|
@get('router').send('showRoot')
|
||||||
|
|
||||||
receive: ->
|
receive: ->
|
||||||
@store.receive.apply(@store, arguments)
|
@store.receive.apply(@store, arguments)
|
||||||
|
|
|
@ -3,8 +3,8 @@ Travis.Router = Ember.Router.extend
|
||||||
enableLogging: true
|
enableLogging: true
|
||||||
initialState: 'loading'
|
initialState: 'loading'
|
||||||
|
|
||||||
goToRoot: Ember.Route.transitionTo('root.home.show')
|
showRoot: Ember.Route.transitionTo('root.home.show')
|
||||||
goToStats: Ember.Route.transitionTo('root.stats')
|
showStats: Ember.Route.transitionTo('root.stats')
|
||||||
|
|
||||||
showRepository: Ember.Route.transitionTo('root.home.repository.show')
|
showRepository: Ember.Route.transitionTo('root.home.repository.show')
|
||||||
showBuilds: Ember.Route.transitionTo('root.home.repository.builds.index')
|
showBuilds: Ember.Route.transitionTo('root.home.repository.builds.index')
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<a {{action goToRoot href=true}}>
|
<a {{action showRoot href=true}}>
|
||||||
<h1>Travis</h1>
|
<h1>Travis</h1>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<ul id="navigation">
|
<ul id="navigation">
|
||||||
<li {{bindAttr class="view.classHome"}}>
|
<li {{bindAttr class="view.classHome"}}>
|
||||||
<a {{action goToRoot href=true}}>Home</a>
|
<a {{action showRoot href=true}}>Home</a>
|
||||||
</li>
|
</li>
|
||||||
<li {{bindAttr class="view.classStats"}}>
|
<li {{bindAttr class="view.classStats"}}>
|
||||||
<a {{action goToStats href=true}}>Stats</a>
|
<a {{action showStats href=true}}>Stats</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="http://about.travis-ci.org/blog">Blog</a>
|
<a href="http://about.travis-ci.org/blog">Blog</a>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user