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