Blame view

dictionary/templates/inflection_tables.html 2.19 KB
janek37 authored
1
2
{% load dictionary_extras %}
<div class="entry-article scheme{{ lexeme.part_of_speech.color_scheme }}">
janek37 authored
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    <h1>
        {{ lexeme.entry }}
        {{ lexeme|attribute:"zwrotność" }}
        {% if lexeme.pronunciation %}
            <span class="pronunciation">[{{ lexeme.pronunciation|safe }}]</span>
        {% endif %}
        {% if lexeme.gloss %}
            <span class="gloss">{{ lexeme.gloss|safe }}</span>
        {% endif %}
    </h1>

    <p>
        {{ lexeme.part_of_speech.full_name }}
        {% if lexeme.part_of_speech.symbol == 'v' %}
            {{ lexeme|attribute:"właściwy" }}
            {{ lexeme|attribute:"przechodniość" }}
        {% endif %}
        <span class="qualifiers">
janek37 authored
21
      {{ info.qualifiers|join:" " }}
janek37 authored
22
23
24
            {% if info.commonness %}
                n. wł. {{ info.commonness|join:", " }}
            {% endif %}
janek37 authored
25
    </span>
janek37 authored
26
27
28
29
        {% if lexeme.note %}
            ◊ {{ lexeme.note|safe }}
        {% endif %}
        <span class="sjpdor">
janek37 authored
30
31
      {{ info.SJPDor|yesno:"[SJPDor.]," }}
    </span>
janek37 authored
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
    </p>

    <p>
        {% if lexeme.part_of_speech.lexical_class.symbol == 'subst' %}
            {{ lexeme.lip_data.inflection_characteristics }}
        {% endif %}
        {{ lexeme|attribute:"aspekt" }}
        {% if tables|length == 1 %}
            {{ lexeme.lip_data.patterns }}
        {% endif %}
    </p>

    <p class="separator"></p>

    <div class="inflection-tables">
        {% for inflection_characteristic, patterns, table in tables %}
            <div class="inflection-table-container">
                {% include "inflection_table.html" %}
            </div>
        {% endfor %}
    </div>
    {% if cross_references %}
        <table class="cross-references">
            <tr>
                <th class="head" colspan="2">Odsyłacze</th>
            </tr>
            {% for cr in cross_references %}
                <tr>
                    <th>{{ cr.type.desc }}</th>
janek37 authored
61
62
63
64
65
                    <td>
                        <span class="cr-link" id="cr{{ cr.to_lexeme.id }}">
                            {{ cr.to_lexeme.entry }}
                        </span>
                    </td>
janek37 authored
66
67
68
                </tr>
            {% endfor %}
        </table>
janek37 authored
69
    {% endif %}
janek37 authored
70
</div>