reader_base.html 4.14 KB
{% 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 'dictionary entries' %}</a></p>
            <p><a href="{% url 'pattern_reader_view' %}">{% trans 'inflection patterns' %}</a></p>
            <p><a href="{% url 'help' %}">{% trans 'help' %}</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>
                <p class="subitem show-splash">{% trans 'splash screen' %}</p>
        </div>
    </div>
    <div id="settings-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>
    <a href="{% url 'help' %}">
        <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">Zygmunt&nbsp;Saloni</span>
                <span class="author">Marcin&nbsp;Woliński</span>
                <span class="author">Robert&nbsp;Wołosz</span>
                <span class="author">Włodzimierz&nbsp;Gruszczyński</span>
                <span class="author">Danuta&nbsp;Skowrońska</span>
                <h1>Słownik gramatyczny<br>języka polskiego</h1>
                <p>Wydanie III online</p>
                <p>Warszawa 2015</p>
                <div id="splash-footer">
                    <p>
                        Projekt został sfinansowany ze środków Narodowego Centrum Nauki
                        przyznanych na podstawie decyzji numer DEC-2011/01/B/HS2/04695.
                    </p>
                    <p>
                        Uwaga: strona używa tzw. ciasteczek (ang. cookie),
                        które są konieczne do działania aplikacji.
                    </p>
                </div>
            </div>
            <div id="splash-button">
                <span>OK</span>
            </div>
        </div>
    </div>
{% endblock %}