base.html
4.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!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 %} – Walenty [beta]</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" 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 %}
</head>
<body>
<div class="container-fluid h-100 d-flex flex-column p-0">
<nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark font-weight-bold" style="z-index: 2000;">
<a class="navbar-brand" href="{% url 'dash' %}">Walenty [beta]</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">
<ul class="navbar-nav mr-auto">
<li class="nav-item" id="nav-entries">
<a class="nav-link" href="{% url 'entries:entries' %}">
{% trans "Hasła" %}
</a>
</li>
{% block lastvisited %}{% endblock %}
{% block settings %}{% endblock %}
<li class="nav-item" id="nav-phrases">
<a class="nav-link" href="{% url 'phrase_expansions:phrase_expansions' %}">
{% trans "Typy fraz" %}
</a>
</li>
<!--li class="nav-item" id="nav-stats">
<a class="nav-link" href="{% url 'dictionary_statistics:dictionary_statistics' %}">
{% trans "Statystyki" %}
</a>
</li>
<li class="nav-item" id="nav-download">
<a class="nav-link" href="{% url 'download:download' %}">
{% trans "Pobierz słownik" %}
</a>
</li-->
<li class="nav-item" id="nav-admin">
<a class="nav-link" href="/admin/">
[[ Admin ]]
</a>
</li>
</ul>
</div>
<span id="import-status" class="navbar-text text-warning mr-3"></span>
<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>
<main class="container-fluid flex-grow-1 overflow-auto m-0 p-0 bg-dark" role="main">
{% block content %}{% endblock %}
</main>
<div class="fixed-bottom text-dark" id="info"></div>
</div>
</body>
</html>