Newer
Older
<!doctype html>
{% load i18n %}
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{% block title %}{% endblock %} – Val Unifier</title>
<link rel="icon" href="{% static 'common/favicon.ico' %}">
<link rel="stylesheet" type="text/css" href="https://bootswatch.com/4/lux/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap">
{% block styles %}{% endblock %}
<link rel="stylesheet" type="text/css" href="{% static 'common/css/font.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'common/css/common.css' %}">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!--might be needed for resizeable panels, causes errors if included after Popper-->
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<!--Bootstrap’s tooltips require Popper-->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script type="text/javascript">
window.STATIC_URL = '{% static '' %}';
window.USER_USERNAME = '{{ request.user.username }}';
{{ request.user.get_all_permissions|dictsort:0|json_script:"user-permissions" }}
<script type="text/javascript" src="{% static 'common/js/utils.js' %}"></script>
<script type="text/javascript" src="{% static 'common/js/init.js' %}"></script>
<!-- translations: https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#using-the-javascript-translation-catalog -->
<script type="text/javascript" src="{% url 'javascript-catalog' %}"></script>
{% block scripts %}{% endblock %}
{% vite_hmr_client %}
{% vite_asset 'src/main.js' %}
</head>
<body>
{% block modals %}{% endblock %}
<div class="container-fluid h-100 d-flex flex-column p-0">
<!--z-index 2 above sticky-top-->
<nav id="page-nav" class="navbar navbar-expand-custom sticky-top navbar-dark bg-dark font-weight-bold p-2" style="z-index: 1022;">
<a class="navbar-brand" href="{% url 'dash' %}">Val Unifier</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
{% if request.user.is_authenticated %}
<a class="nav-link text-light" href="{% url 'entries:entries' %}">
{% block additional-nav-items %}{% endblock %}
<a class="nav-link text-light" href="{% url 'phrase_expansions:phrase_expansions' %}">
<a class="nav-link text-light" href="{% url 'dictionary_statistics:dictionary_statistics' %}">
{% trans "Statystyki" %}
</a>
</li>
{% if perms.users.view_user %}
<a class="nav-link text-light" href="{% url 'users:user_list' %}">
{% trans "Użytkownicy" %}
</a>
</li>
{% endif %}
<li class="nav-item mr-1" id="nav-fin-statements">
<a class="nav-link text-light" href="{% url 'financial_settlement:statement_list' %}">
{% trans "Umowy" %}
</a>
</li>
</div>
<span id="import-status" class="navbar-text text-warning mr-3"></span>
{% if request.user.is_authenticated %}
<div class="dropdown mr-3">
<a href="#" class="btn btn-sm btn-outline-light dropdown-toggle" data-toggle="dropdown">{{ request.user.get_full_name|default:request.user.username }}</a>
<div class="dropdown-menu dropdown-menu-right">
<a href="{% url 'users:user_profile' %}" class="dropdown-item font-weight-bold text-dark text-uppercase">
{% trans "Twój profil" %}
</a>
<a href="{% url 'users:logout' %}" class="dropdown-item font-weight-bold text-dark text-uppercase">
{% trans "Wyloguj się" %}
</a>
</div>
</div>
{% else %}
<a id="login-btn" class="btn btn-sm btn-outline-light mr-3" href="{% url 'users:login' %}">{% trans "Zaloguj się" %}</a>
{% endif %}
<a
id="lang-btn"
class="btn btn-sm btn-outline-light"
href="{% if LANGUAGE_CODE == "pl" %}/en{% else %}/pl{% endif %}{{ request.path|slice:"3:" }}"
>
<b>{% trans "EN" %}</b>
</a>
</nav>
{% if is_vue_app %}
<main id="vue-app"></main>
{% else %}
<main class="container-fluid flex-grow-1 overflow-auto m-0 p-0 bg-dark" role="main">
{% block content %}{% endblock %}
</main>
{% endif %}
<footer class="footer bg-dark text-muted">
<div class='px-1'>
Copyright © {% trans "Instytut Podstaw Informatyki PAN" %}, 2021.
{% trans "Praca współfinansowana przez" %} <a class="text-light" href="http://clarin-pl.eu" target="_blank">CLARIN-PL</a>.
{% trans "Strona wykorzystuje" %} <a class="text-light" href="https://www.djangoproject.com/" target="_blank">Django</a>,
<a class="text-light" href="https://getbootstrap.com/" target="_blank">Bootstrap</a> {% trans "oraz" %}
<a class="text-light" href="https://jquery.com/" target="_blank">JQuery</a> {% trans "z motywem opartym na" %}
<a class="text-light" href="https://bootswatch.com/lux/" target="_blank">Pulse</a>{% trans " i krojem pisma" %}
<a class="text-light" href="https://fonts.google.com/specimen/Roboto+Condensed" target="_blank">Roboto Condensed</a>{% trans "." %}
</div>
</footer>
<div class="fixed-bottom px-1" id="info"></div>
</div>
</body>
</html>