f0ckv2/views/snippets/navbar_admin.html

37 lines
1.4 KiB
HTML
Raw Normal View History

2021-05-19 12:19:26 +00:00
<nav class="navbar navbar-expand-lg">
2021-12-04 10:08:55 +00:00
<a class="navbar-brand" href="/"><span class="f0ck">F0CK</span></a>
2021-05-19 12:19:26 +00:00
<div class="navigation-links">
<ul class="navbar-nav">
<li class="nav-item dropdown" id="themes">
2021-12-04 11:19:47 +00:00
<a class="nav-link" href="#" content="{{ theme }}" data-toggle="dropdown">Theme</a>
2021-05-19 12:19:26 +00:00
<ul class="dropdown-menu">
2021-12-04 11:19:47 +00:00
@each(themes as t)
<li><a href="/theme/{{ t }}">{{ t }}</a></li>
@endeach
2021-05-19 12:19:26 +00:00
</ul>
</li>
<li class="nav-item">
2021-05-25 12:44:35 +00:00
<a class="nav-link" href="/admin/sessions">
<span class="nav-link-identifier">sessions</span>
2021-05-19 12:19:26 +00:00
</a>
</li>
<li class="nav-item">
2021-12-04 11:19:47 +00:00
<a class="nav-link" href="/admin/log">
<span class="nav-link-identifier">Log</span>
2021-05-19 12:19:26 +00:00
</a>
</li>
2021-12-04 11:19:47 +00:00
@if(typeof totals !== "undefined")
2021-06-24 03:10:55 +00:00
<li class="nav-item" style="width: 100%; text-align: center">
2021-12-04 11:19:47 +00:00
total:&nbsp;{{ totals.total }}&nbsp;|&nbsp;tagged:&nbsp;{{ totals.tagged }}&nbsp;|&nbsp;untagged:&nbsp;{{ totals.untagged }}&nbsp;|&nbsp;sfw:&nbsp;{{ totals.sfw }}&nbsp;|&nbsp;nsfw:&nbsp;{{ totals.nsfw }}
2021-06-24 03:10:55 +00:00
</li>
2021-12-04 11:19:47 +00:00
@endif
2021-05-19 12:19:26 +00:00
</ul>
</div>
<div class="collapse navbar-collapse show" id="navbarSupportedContent">
<div class="pagination-container-fluid">
<div class="pagination-wrapper">
2021-12-04 11:19:47 +00:00
Henlo, {{ session.user }}&nbsp;&nbsp;<a href="/logout">Logout</a>
2021-05-19 12:19:26 +00:00
</div>
</div>
</div>
</nav>