nopaque/app/templates/_sidenav.html.j2

106 lines
5.8 KiB
Plaintext
Raw Normal View History

<ul class="sidenav sidenav-fixed" id="sidenav">
<li>
2023-06-14 08:28:05 +00:00
<div class="user-view" style="padding-top: 1px; padding-left: 20px !important; padding-right: 20px !important; height: 112px;">
<div class="background primary-color"></div>
2022-11-30 13:36:42 +00:00
<div class="row">
2023-06-14 08:28:05 +00:00
{# <div class="col s5">
2023-03-22 11:06:33 +00:00
<a href="{{ url_for('users.user', user_id=current_user.id) }}">
2023-06-14 08:28:05 +00:00
<img src="{{ url_for('users.user_avatar', user_id=current_user.id) }}" alt="user-image" class="circle responsive-img" style="height:80%; margin-top: 22px;">
2023-03-22 11:06:33 +00:00
</a>
2023-06-07 13:13:47 +00:00
</div> #}
2023-06-14 08:28:05 +00:00
{# Change col s12 to col s5 to show user image #}
<div class="col s12" style="word-wrap: break-word; margin-left:-10px;">
<span class="white-text name">
{% if current_user.username|length > 18 %}
{{ current_user.username[:15] + '...' }}
{% else %}
{{ current_user.username }}
{% endif %}
</span>
<span class="white-text email" style="padding-top:5px;">
{% if current_user.email|length > 32 %}
{{ current_user.email[:29] + '...' }}
{% else %}
{{ current_user.email }}
{% endif %}
</span>
2022-11-30 13:36:42 +00:00
</div>
</div>
</div>
</li>
2023-03-16 08:29:57 +00:00
{# <li class="primary-color">
<div style="overflow: hidden;height: 64px; width: 250px;">
<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: ;">
</div>
</li> #}
2022-12-07 13:02:33 +00:00
{# <li><a href="{{ url_for('main.index') }}">nopaque</a></li> #}
2023-03-22 11:06:33 +00:00
<li class="hide-on-large-only">
<a class="waves-effect" href="{{ url_for('main.news') }}"><i class="material-icons left">email</i>News</a>
</li>
2023-03-16 09:31:58 +00:00
{# <li><a href="{{ url_for('main.user_manual') }}"><i class="material-icons">help</i>Manual</a></li> #}
2023-03-22 11:06:33 +00:00
<li>
<a class="waves-effect" class="waves-effect" href="{{ url_for('main.dashboard') }}"><i class="material-icons">dashboard</i>Dashboard</a>
<ul>
<li>
<a class="waves-effect" href="{{ url_for('main.dashboard', _anchor='corpora') }}" style="padding-left: 47px;"><i class="nopaque-icons">I</i>My Corpora</a>
</li>
<li>
<a class="waves-effect" href="{{ url_for('main.dashboard', _anchor='jobs') }}" style="padding-left: 47px;"><i class="nopaque-icons">J</i>My Jobs</a>
</li>
<li>
<a class="waves-effect" href="{{ url_for('main.dashboard', _anchor='contributions') }}" style="padding-left: 47px;"><i class="material-icons">new_label</i>My Contributions</a>
</li>
</ul>
</li>
<li><div class="divider"></div></li>
<li><a class="subheader">Processes & Services</a></li>
2023-03-22 11:06:33 +00:00
<li class="service-color service-color-border border-darken" data-service="file-setup-pipeline" style="border-left: 10px solid; margin-top: 5px;">
<a class="waves-effect" href="{{ url_for('services.file_setup_pipeline') }}"><i class="nopaque-icons service-icons" data-service="file-setup-pipeline"></i>File setup</a>
</li>
<li class="service-color service-color-border border-darken" data-service="tesseract-ocr-pipeline" style="border-left: 10px solid; margin-top: 5px;">
<a class="waves-effect" href="{{ url_for('services.tesseract_ocr_pipeline') }}"><i class="nopaque-icons service-icons" data-service="tesseract-ocr-pipeline"></i>OCR</a>
</li>
{% if config.NOPAQUE_TRANSKRIBUS_ENABLED %}
2023-03-22 11:06:33 +00:00
<li class="service-color service-color-border border-darken" data-service="transkribus-htr-pipeline" style="border-left: 10px solid; margin-top: 5px;">
<a class="waves-effect" href="{{ url_for('services.transkribus_htr_pipeline') }}"><i class="nopaque-icons service-icons" data-service="transkribus-htr-pipeline"></i>HTR</a>
</li>
{% endif %}
2023-03-22 11:06:33 +00:00
<li class="service-color service-color-border border-darken" data-service="spacy-nlp-pipeline" style="border-left: 10px solid; margin-top: 5px;">
<a class="waves-effect" href="{{ url_for('services.spacy_nlp_pipeline') }}"><i class="nopaque-icons service-icons" data-service="spacy-nlp-pipeline"></i>NLP</a>
</li>
<li class="service-color service-color-border border-darken" data-service="corpus-analysis" style="border-left: 10px solid; margin-top: 5px;">
<a class="waves-effect" href="{{ url_for('services.corpus_analysis') }}"><i class="nopaque-icons service-icons" data-service="corpus-analysis"></i>Corpus Analysis</a>
</li>
2023-06-07 13:13:47 +00:00
{# <li><div class="divider"></div></li>
2023-03-22 11:06:33 +00:00
<li>
<a class="waves-effect" class="waves-effect" href="{{ url_for('main.social_area') }}"><i class="material-icons">rocket_launch</i>Social Area</a>
<ul>
<li>
<a class="waves-effect" href="{{ url_for('main.social_area', _anchor='public-users') }}" style="padding-left: 47px;"><i class="material-icons">person</i>Public Users</a>
</li>
<li>
2023-05-05 06:45:27 +00:00
<a class="waves-effect" href="{{ url_for('main.social_area', _anchor='public-corpora') }}" style="padding-left: 47px;"><i class="nopaque-icons">I</i>Public Corpora</a>
2023-03-22 11:06:33 +00:00
</li>
</ul>
2023-06-07 13:13:47 +00:00
</li> #}
2023-03-20 14:31:25 +00:00
<li class="hide-on-large-only"><div class="divider"></div></li>
<li class="hide-on-large-only"><a class="subheader">Account</a></li>
2023-03-22 11:06:33 +00:00
<li class="hide-on-large-only">
<a class="waves-effect" href="{{ url_for('settings.settings') }}"><i class="material-icons left">settings</i>Settings</a>
</li>
<li class="hide-on-large-only">
<a class="waves-effect" href="{{ url_for('auth.logout') }}">Log out</a>
</li>
2023-02-23 12:05:04 +00:00
{% if current_user.can('ADMINISTRATE') %}
2023-03-21 09:50:29 +00:00
<li><div class="divider"></div></li>
2023-03-22 11:06:33 +00:00
<li>
<a class="waves-effect" href="{{ url_for('admin.admin') }}"><i class="material-icons">admin_panel_settings</i>Administration</a>
</li>
2021-12-03 13:07:03 +00:00
{% endif %}
2023-02-23 12:05:04 +00:00
{% if current_user.can('USE_API') %}
2023-03-22 11:06:33 +00:00
<li>
<a class="waves-effect" href="{{ url_for('apifairy.docs') }}"><i class="material-icons">api</i>API</a>
</li>
2022-09-02 11:24:14 +00:00
{% endif %}
</ul>