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.

11 lines
476 B

6 years ago
  1. <div class="menu">
  2. <include(input.renderBody) />
  3. <if(input.user != null)>
  4. <menu-gap />
  5. <menu-header>User</menu-header>
  6. <menu-link if(!input.user.loggedIn) icon="L" href="/auth/login">Login</menu-link>
  7. <menu-link if(input.user.loggedIn) icon="L" href="/auth/logout">Logout <span class="weak">(${input.user.name})</span></menu-link>
  8. </if>
  9. <else-if(!input.allowNoUser)>
  10. <menu-blurb class="error">input.user is missing!</menu-blurb>
  11. </else-if>
  12. </div>