2021-05-28 13:51:23 +00:00
|
|
|
<ul class="sidenav sidenav-fixed" id="sidenav">
|
|
|
|
<li>
|
2023-03-02 14:08:50 +00:00
|
|
|
<div class="user-view" style="padding-top: 3px;">
|
2021-05-28 13:51:23 +00:00
|
|
|
<div class="background primary-color"></div>
|
2022-11-30 13:36:42 +00:00
|
|
|
<div class="row">
|
2023-02-28 09:27:10 +00:00
|
|
|
<div class="col s4">
|
|
|
|
<a href="{{ url_for('users.user', user_id=current_user.id) }}">
|
|
|
|
{% if current_user.avatar %}
|
2023-03-01 13:09:15 +00:00
|
|
|
<img src="{{ url_for('users.profile_avatar', user_id=current_user.id) }}" alt="user-image" class="circle responsive-img" style="height:80%; margin-top: 13px; margin-left:-15px;">
|
2023-02-28 09:27:10 +00:00
|
|
|
{% else %}
|
2023-03-01 13:09:15 +00:00
|
|
|
<img src="{{ url_for('static', filename='images/user_avatar.png') }}" alt="user-image" class="circle responsive-img" style="height:80%; margin-top: 13px; margin-left:-15px;">
|
2023-02-28 09:27:10 +00:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="col s8">
|
2022-11-30 13:36:42 +00:00
|
|
|
<span class="white-text name">{{ current_user.username }}</span>
|
|
|
|
<span class="white-text email">{{ current_user.email }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-28 13:51:23 +00:00
|
|
|
</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> #}
|
2021-05-28 13:51:23 +00:00
|
|
|
<li><a href="{{ url_for('main.news') }}"><i class="material-icons left">email</i>News</a></li>
|
2022-05-17 13:31:05 +00:00
|
|
|
<li><a href="{{ url_for('main.user_manual') }}"><i class="material-icons">help</i>Manual</a></li>
|
2023-03-16 08:29:57 +00:00
|
|
|
<li><a href="{{ url_for('main.dashboard') }}" class="subheader">Dashboard</a></li>
|
|
|
|
<li><a href="{{ url_for('main.dashboard', _anchor='corpora') }}"><i class="nopaque-icons">I</i>My Corpora</a></li>
|
|
|
|
<li><a href="{{ url_for('main.dashboard', _anchor='jobs') }}"><i class="nopaque-icons">J</i>My Jobs</a></li>
|
|
|
|
<li><a href="{{ url_for('main.dashboard', _anchor='contributions') }}"><i class="material-icons">new_label</i>My Contributions</a></li>
|
2021-05-28 13:51:23 +00:00
|
|
|
<li><div class="divider"></div></li>
|
|
|
|
<li><a class="subheader">Processes & Services</a></li>
|
2023-01-03 16:03:47 +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 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 href="{{ url_for('services.tesseract_ocr_pipeline') }}"><i class="nopaque-icons service-icons" data-service="tesseract-ocr-pipeline"></i>OCR</a></li>
|
2022-04-04 11:31:09 +00:00
|
|
|
{% if config.NOPAQUE_TRANSKRIBUS_ENABLED %}
|
2023-01-03 16:03:47 +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 href="{{ url_for('services.transkribus_htr_pipeline') }}"><i class="nopaque-icons service-icons" data-service="transkribus-htr-pipeline"></i>HTR</a></li>
|
2022-04-04 11:31:09 +00:00
|
|
|
{% endif %}
|
2023-01-03 16:03:47 +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 href="{{ url_for('services.spacy_nlp_pipeline') }}"><i class="nopaque-icons service-icons" data-service="spacy-nlp-pipeline"></i>NLP</a></li>
|
2023-03-13 15:22:42 +00:00
|
|
|
<li class="service-color service-color-border border-darken" data-service="corpus-analysis" style="border-left: 10px solid; margin-top: 5px;"><a href="{{ url_for('services.corpus_analysis') }}"><i class="nopaque-icons service-icons" data-service="corpus-analysis"></i>Corpus Analysis</a></li>
|
2021-05-28 13:51:23 +00:00
|
|
|
<li><div class="divider"></div></li>
|
2023-03-16 08:29:57 +00:00
|
|
|
<li><a class="subheader">Social Area</a></li>
|
2023-03-16 08:58:56 +00:00
|
|
|
<li><a href="{{ url_for('main.social_area', _anchor='public-users') }}"><i class="material-icons">person</i>Public Users</a></li>
|
|
|
|
<li><a href="{{ url_for('main.social_area', _anchor='public-corproa') }}"><i class="nopaque-icons">I</i>Public Corpora</a></li>
|
2023-03-16 08:29:57 +00:00
|
|
|
<li><div class="divider"></div></li>
|
2021-05-28 13:51:23 +00:00
|
|
|
<li><a class="subheader">Account</a></li>
|
2023-03-13 14:04:44 +00:00
|
|
|
<li><a href="{{ url_for('users.edit_profile', user_id=current_user.id) }}"><i class="material-icons left">settings</i>User Settings</a></li>
|
2021-05-28 13:51:23 +00:00
|
|
|
<li><a href="{{ url_for('auth.logout') }}">Log out</a></li>
|
2023-02-23 12:05:04 +00:00
|
|
|
{% if current_user.can('ADMINISTRATE') or current_user.can('USE_API') %}
|
2021-05-28 13:51:23 +00:00
|
|
|
<li><div class="divider"></div></li>
|
2021-12-03 13:56:56 +00:00
|
|
|
{% endif %}
|
2023-02-23 12:05:04 +00:00
|
|
|
{% if current_user.can('ADMINISTRATE') %}
|
2021-11-15 13:54:08 +00:00
|
|
|
<li><a href="{{ url_for('admin.index') }}"><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') %}
|
2022-09-02 11:24:14 +00:00
|
|
|
<li><a href="{{ url_for('apifairy.docs') }}"><i class="material-icons">api</i>API</a></li>
|
|
|
|
{% endif %}
|
2021-05-28 13:51:23 +00:00
|
|
|
</ul>
|