From cc90200d66e03ac1e20fedbc4fa7d290411b5f8d Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 13 Feb 2014 15:51:38 +0100 Subject: [PATCH] Instead of rendering getting started page, just redirect to it It would be nice to allow to just render getting started page, but because of the way we manage layouts, it's hard to get it running without weird bugs popping up now and then. This should be easier to achieve once the templates are cleaned up to use better laout management. --- assets/scripts/app/routes.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/scripts/app/routes.coffee b/assets/scripts/app/routes.coffee index ca36bb26..176890d6 100644 --- a/assets/scripts/app/routes.coffee +++ b/assets/scripts/app/routes.coffee @@ -60,7 +60,7 @@ Travis.ApplicationRoute = Travis.Route.extend return true renderNoOwnedRepos: -> - @render('no_owned_repos', outlet: 'main', into: 'application') + @transitionTo('getting_started') renderFirstSync: -> @renderFirstSync() @@ -122,12 +122,11 @@ Travis.GettingStartedRoute = Travis.Route.extend setupController: -> $('body').attr('id', 'home') @container.lookup('controller:repos').activate() - @container.lookup('controller:application').connectLayout 'home' + @container.lookup('controller:application').connectLayout 'simple' @_super.apply(this, arguments) renderTemplate: -> @render 'top', outlet: 'top' - @render 'repos', outlet: 'left' @_super.apply(this, arguments) Travis.FirstSyncRoute = Travis.Route.extend