2019-07-04 11:59:52 +02:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
2020-01-17 10:42:02 +01:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2019-07-04 11:59:52 +02:00
|
|
|
|
{% if title %}
|
2019-12-02 11:34:28 +01:00
|
|
|
|
<title>nopaque – {{ title }}</title>
|
2019-07-04 11:59:52 +02:00
|
|
|
|
{% else %}
|
2019-12-02 11:34:28 +01:00
|
|
|
|
<title>nopaque</title>
|
2019-07-04 11:59:52 +02:00
|
|
|
|
{% endif %}
|
2020-01-17 10:42:02 +01:00
|
|
|
|
<link rel="icon" href="{{ url_for('static', filename='images/favicon.png') }}">
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='fonts/Material_design_icons/material-icons.css') }}">
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/Materialize/materialize.min.css') }}">
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/nopaque.css') }}">
|
2020-01-13 15:33:05 +01:00
|
|
|
|
<script src="{{ url_for('static', filename='js/JSONPatch.js/jsonpatch.min.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/Dark_Reader/darkreader.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/List.js/list.min.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/Socket.IO/socket.io.slim.js') }}"></script>
|
2020-01-17 10:42:02 +01:00
|
|
|
|
<script src="{{ url_for('static', filename='js/nopaque.js') }}"></script>
|
2020-01-29 10:50:31 +01:00
|
|
|
|
<script src="{{ url_for('static', filename='js/nopaque.lists.js') }}"></script>
|
2019-07-04 11:59:52 +02:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2019-07-05 14:47:35 +02:00
|
|
|
|
<header>
|
2019-07-19 15:16:20 +02:00
|
|
|
|
<div class="navbar-fixed">
|
|
|
|
|
<nav>
|
|
|
|
|
<div class="nav-wrapper">
|
2019-12-02 11:34:28 +01:00
|
|
|
|
<a href="{{ url_for('main.index') }}" class="brand-logo center"><i class="material-icons">opacity</i>nopaque</a>
|
2019-07-19 15:16:20 +02:00
|
|
|
|
<a href="#" data-target="slide-out" class="sidenav-trigger"><i class="material-icons">menu</i></a>
|
|
|
|
|
<ul class="right hide-on-med-and-down">
|
2019-08-02 15:15:02 +02:00
|
|
|
|
<li><a id="nav-notifications" class="dropdown-trigger no-autoinit" href="#!" data-target="nav-notifications-dropdown"><i class="material-icons">notifications</i></a></li>
|
2019-09-04 13:51:21 +02:00
|
|
|
|
<li>
|
|
|
|
|
<a id="nav-account" class="dropdown-trigger no-autoinit" href="#!" data-target="nav-account-dropdown">
|
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
|
{{ current_user.username }}<i class="material-icons right">account_circle</i>
|
|
|
|
|
{% else %}
|
|
|
|
|
<i class="material-icons">account_circle</i>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
2019-07-19 15:16:20 +02:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
</div>
|
2019-07-05 14:47:35 +02:00
|
|
|
|
|
2020-01-17 11:46:30 +01:00
|
|
|
|
<!-- Dropdown menus for the navbar -->
|
|
|
|
|
<div id="nav-notifications-dropdown" class="dropdown-content grey-text text-darken-4">
|
|
|
|
|
<p>Notifications</p>
|
|
|
|
|
</div>
|
|
|
|
|
<ul id="nav-account-dropdown" class="dropdown-content">
|
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
|
<li><a href="{{ url_for('profile.index') }}"><i class="material-icons">settings</i>Settings</a></li>
|
|
|
|
|
<li><a href="{{ url_for('auth.logout') }}"><i class="material-icons">power_settings_new</i>Log out</a></li>
|
|
|
|
|
{% else %}
|
|
|
|
|
<li><a href="{{ url_for('auth.login') }}"><i class="material-icons">person</i>Log in</a></li>
|
|
|
|
|
<li><a href="{{ url_for('auth.register') }}"><i class="material-icons">person_add</i>Register</a></li>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</ul>
|
|
|
|
|
|
2019-07-05 14:47:35 +02:00
|
|
|
|
<ul id="slide-out" class="sidenav sidenav-fixed">
|
2019-12-02 11:34:28 +01:00
|
|
|
|
<li><a href="{{ url_for('main.index') }}"><i class="material-icons">opacity</i>nopaque</a></li>
|
2019-09-11 10:00:52 +02:00
|
|
|
|
<li><a href="#"><i class="material-icons">linear_scale</i>Workflow</a></li>
|
2019-08-01 10:33:05 +02:00
|
|
|
|
<li><a href="{{ url_for('main.dashboard') }}"><i class="material-icons">dashboard</i>Dashboard</a></li>
|
2019-07-12 17:21:04 +02:00
|
|
|
|
<li><div class="divider"></div></li>
|
2019-09-04 13:51:21 +02:00
|
|
|
|
<li><a class="subheader">Services</a></li>
|
2020-01-07 14:39:01 +01:00
|
|
|
|
<li><a href="{{ url_for('services.service', service='merge_images') }}"><i class="material-icons">burst_mode</i>Merge images</a></li>
|
2019-11-08 12:21:59 +01:00
|
|
|
|
<li><a href="{{ url_for('services.service', service='nlp') }}"><i class="material-icons">format_textdirection_l_to_r</i>NLP</a></li>
|
|
|
|
|
<li><a href="{{ url_for('services.service', service='ocr') }}"><i class="material-icons">find_in_page</i>OCR</a></li>
|
2019-09-04 13:51:21 +02:00
|
|
|
|
{% if current_user.is_administrator() %}
|
|
|
|
|
<li><div class="divider"></div></li>
|
|
|
|
|
<li><a class="subheader">Administration</a></li>
|
2019-11-15 12:51:53 +01:00
|
|
|
|
<li><a href="{{ url_for('admin.index') }}"><i class="material-icons">build</i>Administration tools</a></li>
|
2019-07-10 14:36:31 +02:00
|
|
|
|
{% endif %}
|
2019-09-10 15:10:16 +02:00
|
|
|
|
<div class="hide-on-large-only">
|
|
|
|
|
<li><div class="divider"></div></li>
|
|
|
|
|
<li><a class="subheader">Account</a></li>
|
|
|
|
|
{% if current_user.is_authenticated %}
|
2019-09-23 16:11:01 +02:00
|
|
|
|
<li><a href="{{ url_for('profile.index') }}"><i class="material-icons">settings</i>Settings</a></li>
|
2019-09-10 15:10:16 +02:00
|
|
|
|
<li><a href="{{ url_for('auth.logout') }}"><i class="material-icons">power_settings_new</i>Log out</a></li>
|
|
|
|
|
{% else %}
|
|
|
|
|
<li><a href="{{ url_for('auth.login') }}"><i class="material-icons">person</i>Log in</a></li>
|
|
|
|
|
<li><a href="{{ url_for('auth.register') }}"><i class="material-icons">person_add</i>Register</a></li>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
2019-07-05 14:47:35 +02:00
|
|
|
|
</ul>
|
|
|
|
|
</header>
|
2019-07-04 11:36:23 +02:00
|
|
|
|
|
2019-07-05 11:04:45 +02:00
|
|
|
|
<main class="grey lighten-5">
|
2019-11-11 15:57:55 +01:00
|
|
|
|
{% block main_block %}{% endblock %}
|
2019-07-04 12:23:09 +02:00
|
|
|
|
</main>
|
2019-07-04 10:40:23 +02:00
|
|
|
|
|
2019-07-05 14:47:35 +02:00
|
|
|
|
<footer class="page-footer">
|
|
|
|
|
<div class="footer-copyright">
|
|
|
|
|
<div class="container">
|
|
|
|
|
© 2019 Bielefeld University
|
|
|
|
|
<a class="grey-text text-lighten-4 right" href="#!">Impress</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
2020-01-13 15:33:05 +01:00
|
|
|
|
<script src="{{ url_for('static', filename='js/Materialize/materialize.min.js') }}"></script>
|
2020-01-17 10:49:04 +01:00
|
|
|
|
<script>
|
|
|
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
|
|
|
{% if current_user.is_authenticated and current_user.is_dark %}
|
|
|
|
|
DarkReader.enable({"brightness": 100, "contrast": 100, "sepia": 0});
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% for flashed_message in get_flashed_messages() %}
|
2020-01-23 12:06:30 +01:00
|
|
|
|
nopaque.toast("{{ flashed_message }}");
|
2020-01-17 10:49:04 +01:00
|
|
|
|
{% endfor %}
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2019-07-04 11:59:52 +02:00
|
|
|
|
</body>
|
2019-07-04 10:40:23 +02:00
|
|
|
|
</html>
|