This commit is contained in:
Flummi 2021-12-23 06:06:12 +01:00
parent 99124be16f
commit 0085db6c2c
3 changed files with 16 additions and 6 deletions

View File

@ -1205,3 +1205,11 @@ div#footbar {
transition: .5s ease-in-out; transition: .5s ease-in-out;
user-select: none; user-select: none;
} }
/* avatar */
img.avatar {
height: 24px;
width: 24px;
border-radius: 25px;
margin-top: 1px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@ -4,11 +4,13 @@
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item dropdown"> <li class="nav-item dropdown">
@if(session) @if(session)
<a class="nav-link" href="/admin" content="{{ session.user }}" data-toggle="dropdown">Admin</a> <a class="nav-link" href="#" content="{{ session.user }}" data-toggle="dropdown">
<img src="/s/img/ava/default.png" class="avatar" />&nbsp;{{ session.user }}
</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="/admin">adminpanel</a></li> <li><a href="/admin">adminpanel</a></li>
<li><a href="/admin/sessions">sessions</a></li> <li><a href="/user/{{ session.user.toLowerCase() }}">my f0cks</a></li>
<li><a href="/admin/test">search (wip)</a></li> <li><a href="/settings">settings</a></li>
<li><a href="/about">About</a></li> <li><a href="/about">About</a></li>
<li><a href="/logout">logout</a></li> <li><a href="/logout">logout</a></li>
</ul> </ul>
@ -23,7 +25,7 @@
<a class="nav-link ddcontent" href="#" content="{{ theme }}" data-toggle="dropdown">Theme</a> <a class="nav-link ddcontent" href="#" content="{{ theme }}" data-toggle="dropdown">Theme</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@each(themes as t) @each(themes as t)
<li><a href="/theme/{{ t }}">{{ t }}</a></li> <li><a href="/theme/{{ t }}">{{ t }}</a></li>
@endeach @endeach
</ul> </ul>
</li> </li>
@ -42,7 +44,7 @@
<a class="nav-link ddcontent" href="#"@if(typeof session.mode !== "undefined") content="{{ modes[session.mode] ?? 'sfw' }}" data-toggle="dropdown"@endif>Mode</a> <a class="nav-link ddcontent" href="#"@if(typeof session.mode !== "undefined") content="{{ modes[session.mode] ?? 'sfw' }}" data-toggle="dropdown"@endif>Mode</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@for(let i = 0; i < modes.length; i++) @for(let i = 0; i < modes.length; i++)
<li><a class="dropdown-item" href="/mode/{{ i }}">{{ modes[i] }}</a></li> <li><a class="dropdown-item" href="/mode/{{ i }}">{{ modes[i] }}</a></li>
@endfor @endfor
</ul> </ul>
</li> </li>