mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
41 lines
2.5 KiB
Django/Jinja
41 lines
2.5 KiB
Django/Jinja
<div class="navbar-fixed">
|
|
<nav class="nav-extended">
|
|
<div class="nav-wrapper primary-color">
|
|
{% if current_user.is_authenticated %}
|
|
<a href="#" data-target="sidenav" class="sidenav-trigger"><i class="material-icons">menu</i></a>
|
|
{% endif %}
|
|
<a href="{{ url_for('main.index') }}" class="brand-logo" style="height: 100%; overflow: hidden;">
|
|
<img class="hide-on-small-only" src="{{ url_for('static', filename='images/nopaque_-_logo_name_slogan.svg') }}" style="height: 128px; margin-top: -32px; margin-left: -32px;">
|
|
<img class="hide-on-med-and-up" src="{{ url_for('static', filename='images/nopaque_-_logo.svg') }}" style="height: 128px; margin-top: -32px; margin-left: -32px;">
|
|
</a>
|
|
<ul class="right">
|
|
<li><a class="dropdown-trigger no-autoinit" data-target="nav-more-dropdown" href="#!" id="nav-more-dropdown-trigger"><i class="material-icons">more_vert</i></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="nav-content primary-variant-color">
|
|
<ul class="tabs tabs-transparent">
|
|
<li class="tab"><a href="{{ url_for('main.index') }}" target="_self"><i class="material-icons">home</i></a></li>
|
|
{% if breadcrumbs is defined %}
|
|
{{ breadcrumbs }}
|
|
{% endif %}
|
|
</ul>
|
|
{% if current_user.is_authenticated %}
|
|
<a class="btn-floating btn-large halfway-fab modal-trigger pink tooltipped waves-effect waves-light" data-tooltip="Roadmap" href="#roadmap-modal"><i class="material-icons">explore</i></a>
|
|
{% endif %}
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
|
|
<ul class="dropdown-content" id="nav-more-dropdown">
|
|
<li><a href="{{ url_for('main.user_manual') }}"><i class="material-icons left">help</i>Manual</a></li>
|
|
{% if current_user.is_authenticated %}
|
|
<li><a href="{{ url_for('settings.settings') }}"><i class="material-icons left">settings</i>General settings</a></li>
|
|
<li><a href="{{ url_for('profile.edit_profile', user_id=current_user.id) }}"><i class="material-icons left">contact_page</i>Profile settings</a></li>
|
|
<li class="divider" tabindex="-1"></li>
|
|
<li><a href="{{ url_for('auth.logout') }}">Log out</a></li>
|
|
{% else %}
|
|
<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>
|
|
<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>
|
|
{% endif %}
|
|
</ul>
|