This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Meteor.isClient) { | |
Template.registerHelper('authInProgress', function() { | |
return Meteor.loggingIn(); | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="orgLayout"> | |
{{#if authInProgress}} | |
<div class="ui container"> | |
<div class="ui segment"> | |
<p>Loading user...</p> | |
</div> | |
</div> | |
{{else}} | |
{{#if isAuthorized}} | |
...MAIN CONTENT... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ROUTER GROUPS | |
var exposed, loggedIn, admin; | |
exposed = FlowRouter.group({}); | |
loggedIn = FlowRouter.group({ | |
triggersEnter: [ | |
function(){ | |
$('html, body').animate({ scrollTop: -10000 }, 100); // scroll to top on route change | |
} | |
] |