Initial Commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<div class="menu">
|
||||
<include(input.renderBody) />
|
||||
<if(input.user != null)>
|
||||
<menu-gap />
|
||||
<menu-header>User</menu-header>
|
||||
<menu-link if(!input.user.loggedIn) icon="L" href="/auth/login">Login</menu-link>
|
||||
<menu-link if(input.user.loggedIn) icon="L" href="/auth/logout">Logout <span class="weak">(${input.user.name})</span></menu-link>
|
||||
</if>
|
||||
<else-if(!input.allowNoUser)>
|
||||
<menu-blurb class="error">input.user is missing!</menu-blurb>
|
||||
</else-if>
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
.menu {
|
||||
position: fixed;
|
||||
top: 5.5em;
|
||||
bottom: 0;
|
||||
width: 28ch;
|
||||
|
||||
padding: 0.333em;
|
||||
|
||||
text-align: left;
|
||||
|
||||
user-select: none;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
Reference in New Issue
Block a user