39 lines
1.5 KiB
HTML
39 lines
1.5 KiB
HTML
<nav class="navbar navbar-default">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
<span class="sr-only">Navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="/">
|
|
<img src="/static/image/logo.png" height="20">
|
|
</a>
|
|
|
|
</div>
|
|
<div id="navbar" class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
{% if session.logged_in %}
|
|
<li><a href="/">Home</a></li>
|
|
<li><a href="/dashboard">Дашборд</a></li>
|
|
<li><a href="/statistics">Статистика</a></li>
|
|
{% if session.is_admin %}
|
|
<li><a href="/admin">Админка</a></li>
|
|
{% endif %}
|
|
{% endif %}
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
{% if session.logged_in %}
|
|
<li><a href="/update_user_info">Изменить информацию профиля</a></li>
|
|
<li><a href="/update_pass">Изменить пароль</a></li>
|
|
<li><a href="/logout">Выйти</a></li>
|
|
{% else %}
|
|
<li><a href="/login">Войти</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|