routeConfirmEmail: function(token) { Helpers.arrivedOnView('Confirm Email'); let authLayoutView = new AuthLayoutView(); App().RootView.switchMainView(authLayoutView); authLayoutView.showChildView('authFormArea', new ConfirmEmailView({token: token})); },
routeResetPasswordComplete: function(token) { Helpers.arrivedOnView('Reset Password'); let authLayoutView = new AuthLayoutView(); App().RootView.switchMainView(authLayoutView); authLayoutView.showChildView('authFormArea', new ResetPasswordCompleteView({token: token})); },
routeSettings: function() { Helpers.arrivedOnView('Settings'); let authLayoutView = new AuthLayoutView(); App().RootView.switchMainView(authLayoutView); authLayoutView.showChildView('authFormArea', new SettingsView()); },
routeTermsOfService: function () { Helpers.arrivedOnView('Terms of Service'); let infoLayout = new InfoLayout(); App().RootView.switchMainView(infoLayout, 'info'); infoLayout.showChildView('infoArea', new Marionette.ItemView({ template: require('templates/info/termsOfServiceView'), })); },
routeError404NotFound: function() { Helpers.arrivedOnView('404'); let infoLayout = new InfoLayout(); App().RootView.switchMainView(infoLayout, 'info e404'); infoLayout.showChildView('infoArea', new Marionette.ItemView({ template: require('templates/errors/404NotFoundView'), })); },
routeCredits: function() { Helpers.arrivedOnView('Credits'); let infoLayout = new InfoLayout(); App().RootView.switchMainView(infoLayout, 'info'); infoLayout.showChildView('infoArea', new Marionette.ItemView({ template: require('templates/info/creditsView'), })); },
routeResetPassword: function() { if (App().session.isValid()) { Helpers.navigateToDefaultLoggedIn(); return; } Helpers.arrivedOnView('Reset Password'); let authLayoutView = new AuthLayoutView(); App().RootView.switchMainView(authLayoutView); authLayoutView.showChildView('authFormArea', new ResetPasswordView()); },
routeLogout: function() { Helpers.arrivedOnView('Logout'); App().session.logout(); },