2021-05-28 13:51:23 +00:00
|
|
|
<div class="navbar-fixed">
|
2024-04-30 06:41:29 +00:00
|
|
|
<nav>
|
2021-05-28 13:51:23 +00:00
|
|
|
<div class="nav-wrapper primary-color">
|
2024-04-30 14:00:06 +00:00
|
|
|
{# menu icon #}
|
|
|
|
{# shown for small/medium devices #}
|
2021-05-28 13:51:23 +00:00
|
|
|
{% if current_user.is_authenticated %}
|
2024-04-30 14:00:06 +00:00
|
|
|
<a href="#!" class="sidenav-trigger" data-target="sidenav"><i class="material-icons">menu</i></a>
|
2021-05-28 13:51:23 +00:00
|
|
|
{% endif %}
|
2024-04-30 14:00:06 +00:00
|
|
|
|
|
|
|
{# nopaque logo+wordmark #}
|
|
|
|
<a href="{{ url_for('main.index') }}" class="brand-logo center" style="height: 100%;">
|
|
|
|
<img src="{{ url_for('static', filename='images/nopaque-logo+wordmark.png') }}" alt="" class="py-3" style="height: 100%;">
|
2021-05-28 13:51:23 +00:00
|
|
|
</a>
|
2024-04-30 14:00:06 +00:00
|
|
|
|
|
|
|
{# right items #}
|
|
|
|
{# shown on large devices #}
|
|
|
|
<!--
|
|
|
|
<ul class="right hide-on-med-and-down" style="height: 100%;">
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
{# avatar, username and email #}
|
|
|
|
{# shown for authenticated users #}
|
|
|
|
{# <li style="height: 100%;">
|
|
|
|
<a href="#!" class="dropdown-trigger no-autoinit" data-target="nav-more-dropdown" id="nav-more-dropdown-trigger" style="height: 100%;">
|
|
|
|
<img src="{{ url_for('users.user_avatar', user_id=current_user.id) }}" alt="" class="left circle py-3 mr-1" style="height: 100%;">
|
2023-11-16 14:57:27 +00:00
|
|
|
{{ current_user.username }} ({{ current_user.email }})
|
|
|
|
</a>
|
2024-04-30 14:00:06 +00:00
|
|
|
</li> #}
|
|
|
|
<li {% if request.path == url_for('settings.settings') %}class="active"{% endif %}><a href="{{ url_for('settings.settings') }}"><i class="material-icons left">settings</i>Settings</a></li>
|
|
|
|
<li><a href="{{ url_for('auth.logout') }}"><i class="material-icons left">logout</i>Log out</a></li>
|
|
|
|
{% else %}
|
|
|
|
{# log in and register items #}
|
|
|
|
{# shown for unauthenticated users on all devices #}
|
|
|
|
<li {% if request.path == url_for('auth.login') %}class="active"{% endif %}><a href="{{ url_for('auth.login') }}"><i class="material-icons left">login</i>Log in</a></li>
|
|
|
|
<li {% if request.path == url_for('auth.register') %}class="active"{% endif %}><a href="{{ url_for('auth.register') }}"><i class="material-icons left">assignment</i>Register</a></li>
|
|
|
|
{% endif %}
|
2021-05-28 13:51:23 +00:00
|
|
|
</ul>
|
2024-04-30 14:00:06 +00:00
|
|
|
-->
|
2021-05-28 13:51:23 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
2024-04-30 14:00:06 +00:00
|
|
|
|
|
|
|
{# {% if current_user.is_authenticated %}
|
2021-05-28 13:51:23 +00:00
|
|
|
<ul class="dropdown-content" id="nav-more-dropdown">
|
2023-03-20 15:00:25 +00:00
|
|
|
<li><a href="{{ url_for('settings.settings') }}"><i class="material-icons left">settings</i>Settings</a></li>
|
2024-04-30 14:00:06 +00:00
|
|
|
<li><a href="{{ url_for('auth.logout') }}"><i class="material-icons left">logout</i>Log out</a></li>
|
2021-05-28 13:51:23 +00:00
|
|
|
</ul>
|
2024-04-30 14:00:06 +00:00
|
|
|
{% endif %} #}
|