reader_base.html
5.61 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{% extends "base.html" %}
{% load version_static i18n %}
{% block extrahead-lib %}
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/lib/custom/jquery-ui-1.11.4.custom.css' %}"/>
{% endblock %}
{% block extrahead %}
<link rel="stylesheet" type="text/css" href="{% version_static 'css/reader.css' %}"/>
<script type="text/javascript" src="{% version_static 'js/reader.js' %}"></script>
{% endblock %}
{% block header %}
{% get_current_language as LANGUAGE_CODE %}
<div id="main-menu-container" class="menu-container">
<div id="branding">
<span id="dict-name">
{% trans 'Grammatical Dictionary<br>of Polish' %}
</span>
</div>
<div class="main-menu">
<p><a href="{% url 'reader_view' %}">{% trans 'dictionary entries' %}</a></p>
<p><a href="{% url 'pattern_reader_view' %}">{% trans 'inflection patterns' %}</a></p>
{% if LANGUAGE_CODE == 'pl' %}
<p><a href="{% url 'help' %}">{% trans 'help' %}</a></p>
<p class="subitem"><a href="{% url 'usage' %}">{% trans 'instructions for use' %}</a></p>
<p class="subitem"><a href="{% version_static 'pdf/Wstęp do II wydania SGJP.pdf' %}">{% trans 'preface to the 2nd edition' %}</a></p>
<p class="subitem"><a href="{% url 'pattern_system' %}">{% trans 'systematization of patterns' %}</a></p>
<p class="subitem"><a href="{% url 'symbols' %}">{% trans 'symbols and notation' %}</a></p>
<p><a href="{% url 'about' %}">{% trans 'about Dictionary' %}</a></p>
<p class="subitem"><a href="{% url 'about' %}#osoby">{% trans 'team' %}</a></p>
<p class="subitem"><a href="{% url 'about' %}#historia">{% trans 'history' %}</a></p>
<p class="subitem"><a href="{% url 'about' %}#liczby">{% trans 'numbers' %}</a></p>
{% else %}
<p><a href="{% url 'help_en' %}">{% trans 'help' %}</a></p>
<p class="subitem"><a href="{% url 'usage_en' %}">{% trans 'instructions for use' %}</a></p>
<p class="subitem"><a href="{% version_static 'pdf/Wstęp do II wydania SGJP.pdf' %}">{% trans 'preface to the 2nd edition' %}</a></p>
<p class="subitem"><a href="{% url 'pattern_system_en' %}">{% trans 'systematization of patterns' %}</a></p>
<p class="subitem"><a href="{% url 'symbols_en' %}">{% trans 'symbols and notation' %}</a></p>
<p><a href="{% url 'about_en' %}">{% trans 'about Dictionary' %}</a></p>
<p class="subitem"><a href="{% url 'about_en' %}#team">{% trans 'team' %}</a></p>
<p class="subitem"><a href="{% url 'about_en' %}#history">{% trans 'history' %}</a></p>
<p class="subitem"><a href="{% url 'about_en' %}#numbers">{% trans 'numbers' %}</a></p>
{% endif %}
<p class="subitem show-splash">{% trans 'splash screen' %}</p>
</div>
</div>
<div id="settings-menu-container" class="menu-container">
<img id="settings-button" class="menu-button"
title="{% trans 'settings' %}" src="{% version_static 'images/gears.png' %}"/>
<div id="settings-menu">
{% block settings-menu %}
{% endblock %}
<p class="item">{% trans "interface language" %}</p>
{% get_language_info_list for LANGUAGES as languages %}
{% get_current_language as lang_code %}
{% for language in languages %}
{% language language.code %}
<p class="subitem {% if language.code == lang_code %}current-language{% else %}change-language{% endif %}" data-lang_code="{{ language.code }}">
{% if language.code == lang_code %}<span class="ui-icon ui-icon-check"></span>{% endif %}
{% trans language.name %}
</p>
{% endlanguage %}
{% endfor %}
</div>
</div>
{% if LANGUAGE_CODE == 'pl' %}
<a href="{% url 'help' %}">
{% else %}
<a href="{% url 'help_en' %}">
{% endif %}
<img id="help-button" class="menu-button"
title="{% trans 'help' %}" src="{% version_static 'images/question.png' %}"/>
</a>
<form action="{% url 'set_language' %}" method="post" style="display: none" id="change_language_form">
{% csrf_token %}
<input type="hidden" value="" name="language" id="language" />
</form>
{% endblock %}
{% block modal_elements %}
<div id="splash-overlay">
<div id="splash">
<div id="splash-content">
<span class="author">Marcin Woliński</span>
<span class="author">Zygmunt Saloni</span><br/>
<span class="author">Robert Wołosz</span>
<span class="author">Włodzimierz Gruszczyński</span><br/>
<span class="author">Danuta Skowrońska</span>
<span class="author">Zbigniew Bronk</span>
<h1>{% trans 'Grammatical Dictionary<br>of Polish' %}</h1>
<p>{% trans "4th Edition Online (pre-release/beta)" %}</p>
<p>Warszawa 2020</p>
<div id="splash-footer">
<p>
{% blocktrans %}
Note: The site uses cookies, which are necessary for the application.
{% endblocktrans %}
</p>
</div>
</div>
<div id="splash-button">
<span>{% trans "OK" %}</span>
</div>
</div>
</div>
{% endblock %}