reader_base.html
2.55 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
{% extends "base.html" %}
{% load version_static i18n %}
{% 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 %}
<div id="main-menu-container">
<div id="branding">
{% trans 'Słownik gramatyczny<br>języka polskiego' %}
</div>
<div class="main-menu">
<p><a href="{% url 'reader_view' %}">{% trans 'hasła słownika' %}</a></p>
<p><a href="{% url 'pattern_reader_view' %}">{% trans 'wzory fleksyjne' %}</a></p>
<p><a href="{% url 'help' %}">{% trans 'pomoc' %}</a></p>
<p class="subitem"><a href="{% url 'help' %}#oznaczenia">{% trans 'stosowane oznaczenia' %}</a></p>
<p><a href="{% url 'about' %}">{% trans 'o Słowniku' %}</a></p>
<p class="subitem"><a href="{% url 'about' %}#osoby">{% trans 'zespół' %}</a></p>
<p class="subitem"><a href="{% url 'about' %}#historia">{% trans 'historia' %}</a></p>
<p class="subitem"><a href="{% url 'about' %}#liczby">{% trans 'w liczbach' %}</a></p>
</div>
</div>
<div id="settings-menu-container">
<img id="settings-button" class="menu-button"
title="{% trans 'ustawienia' %}" src="{% version_static 'images/gears.png' %}"/>
<div id="settings-menu">
{% block settings-menu %}
{% endblock %}
<p class="item">{% trans "język interfejsu" %}</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>
<img id="help-button" class="menu-button"
title="{% trans 'pomoc' %}" src="{% version_static 'images/question.png' %}"/>
<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 %}