From 41ff4931312cbc7fabbeae643b2ebc5656efce00 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Sat, 6 Oct 2012 18:07:48 +0200 Subject: [PATCH] rename goTo* to show* --- assets/scripts/app/app.coffee | 2 +- assets/scripts/app/routes.coffee | 20 ++++++++++---------- assets/scripts/app/templates/layouts/top.hbs | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/assets/scripts/app/app.coffee b/assets/scripts/app/app.coffee index 3821e876..1e750ae0 100644 --- a/assets/scripts/app/app.coffee +++ b/assets/scripts/app/app.coffee @@ -41,7 +41,7 @@ Travis.reopen signOut: -> @get('auth').signOut() - @get('router').send('goToRoot') + @get('router').send('showRoot') receive: -> @store.receive.apply(@store, arguments) diff --git a/assets/scripts/app/routes.coffee b/assets/scripts/app/routes.coffee index 9906b92d..6517bbaa 100644 --- a/assets/scripts/app/routes.coffee +++ b/assets/scripts/app/routes.coffee @@ -3,19 +3,19 @@ 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') - showBuild: Ember.Route.transitionTo('root.home.repository.builds.show') + showRepository: Ember.Route.transitionTo('root.home.repository.show') + showBuilds: Ember.Route.transitionTo('root.home.repository.builds.index') + showBuild: Ember.Route.transitionTo('root.home.repository.builds.show') showPullRequests: Ember.Route.transitionTo('root.home.repository.pullRequests') - showBranches: Ember.Route.transitionTo('root.home.repository.branches') - showJob: Ember.Route.transitionTo('root.home.repository.job') + showBranches: Ember.Route.transitionTo('root.home.repository.branches') + showJob: Ember.Route.transitionTo('root.home.repository.job') - showProfile: Ember.Route.transitionTo('root.profile') - showAccount: Ember.Route.transitionTo('root.profile.account') - showUserProfile: Ember.Route.transitionTo('root.profile.account.profile') + showProfile: Ember.Route.transitionTo('root.profile') + showAccount: Ember.Route.transitionTo('root.profile.account') + showUserProfile: Ember.Route.transitionTo('root.profile.account.profile') signedIn: -> !!Travis.app.get('auth.user') diff --git a/assets/scripts/app/templates/layouts/top.hbs b/assets/scripts/app/templates/layouts/top.hbs index 122b65df..ec7ed87b 100644 --- a/assets/scripts/app/templates/layouts/top.hbs +++ b/assets/scripts/app/templates/layouts/top.hbs @@ -1,13 +1,13 @@ - +

Travis