f0ckv2/views/snippets/navbar_admin.html
2021-06-24 05:10:55 +02:00

43 lines
1.5 KiB
HTML

<nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="/admin"><span class="f0ck">F0CK</span></a>
<div class="navigation-links">
<ul class="navbar-nav">
<li class="nav-item dropdown" id="themes">
<a class="nav-link" href="#" content="{{=theme}}" data-toggle="dropdown">Theme</a>
<ul class="dropdown-menu">
{{each themes as t}}
<li><a href="/theme/{{=t}}">{{=t}}</a></li>
{{/each}}
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="/admin/sessions">
<span class="nav-link-identifier">sessions</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/admin/test">
<span class="nav-link-identifier">search&nbsp;(wip)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<span class="nav-link-identifier">blah</span>
</a>
</li>
{{if typeof totals !== "undefined"}}
<li class="nav-item" style="width: 100%; text-align: center">
total:&nbsp;{{=totals.total}}&nbsp;|&nbsp;tagged:&nbsp;{{=totals.tagged}}&nbsp;|&nbsp;untagged:&nbsp;{{=totals.untagged}}
</li>
{{/if}}
</ul>
</div>
<div class="collapse navbar-collapse show" id="navbarSupportedContent">
<div class="pagination-container-fluid">
<div class="pagination-wrapper">
Henlo, {{=session.user}}&nbsp;&nbsp;<a href="/logout">Logout</a>
{{include partials/pagination}}
</div>
</div>
</div>
</nav>