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>