Skip to content

Instantly share code, notes, and snippets.

@btbjosh
Created August 31, 2015 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btbjosh/3200947ada9c393dc6a3 to your computer and use it in GitHub Desktop.
Save btbjosh/3200947ada9c393dc6a3 to your computer and use it in GitHub Desktop.
Layout Template with Helpers for authInProgress
<template name="orgLayout">
{{#if authInProgress}}
<div class="ui container">
<div class="ui segment">
<p>Loading user...</p>
</div>
</div>
{{else}}
{{#if isAuthorized}}
...MAIN CONTENT...
{{else}}
{{> accessDenied}}
{{/if}}
{{/if}}
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment