reader_base.html 4.67 KB
{% 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 %}
    <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>
            <p><a href="{% url 'help' %}">{% trans 'help' %}</a></p>
                <p class="subitem"><a href="{% url 'usage' %}">{% trans 'instructions of 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>
                <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>
    <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>{% trans 'Grammatical Dictionary<br>of Polish' %}</h1>
                <p>{% trans "3rd Edition Online" %}</p>
                <p>Warszawa 2015</p>
                <div id="splash-footer">
                    <p>
                        {% blocktrans %}
                            The project was funded by the National Science Centre
                            pursuant to the decision no.
                        {% endblocktrans %}
                        DEC-2011/01/B/HS2/04695.
                    </p>
                    <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 %}