The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
916 B

6 years ago
6 years ago
6 years ago
  1. <div class="menu">
  2. <div class="menu-body">
  3. <include(input.renderBody) />
  4. </div>
  5. <if(input.user != null)>
  6. <menu-gap />
  7. <menu-header key="user">User</menu-header>
  8. <menu-link if(!input.user.loggedIn) icon="L" href="/auth/login" on-click("loginClicked")>Login</menu-link>
  9. <menu-link if(input.user.loggedIn) icon="L" href="/auth/logout" on-click("logoutClicked")>Logout <span class="weak">(${input.user.name})</span></menu-link>
  10. </if>
  11. <else-if(!input.allowNoUser)>
  12. <menu-blurb class="error">input.user is missing!</menu-blurb>
  13. </else-if>
  14. </div>
  15. <modal class="modal" enabled=state.loggingIn notification>
  16. <h1>Logging you in...</h1>
  17. <p>You may be redirected to Auth0 if it's been a while.</p>
  18. </modal>
  19. <modal class="modal" enabled=state.loggingOut notification>
  20. <h1>Logging you out...</h1>
  21. <p>You can probably log back in without entering your info if you're quick.</p>
  22. </modal>