expression_info.html 1.74 KB
<div class="title">Znaczenia:</div>

{% for meaning in meanings %}
{% if meaning.wikilink %}
<br><strong>Wikipedia:</strong> <a href="{{ meaning.wikilink }}">{{ meaning.wikilink }}</a>
{% endif %}
<br><strong>Dziedzina:</strong> {% for domain in meaning.domains %}{% if forloop.first %}{{ domain.name }}{% else %}; {{ domain.name }}{% endif %}{% endfor %}

{% if user.is_authenticated %}
    {% if meaning.status %}
    <br><strong>Status:</strong> <span style="color:{{ meaning.status.display_color }}">{{ meaning.status.name }}</span>
    <button type="button" onclick="editMeaning({{ meaning.pk }})">Edytuj</button>
    {% else %}
    <br><strong>Status:</strong> <span style="color:{{ meaning.status.display_color }}">{{ meaning.status.name }}</span>
    <button type="button" onclick="editMeaning({{ meaning.pk }})">Dodaj</button>
    {% endif %}
{% endif %}
<table id="selExpressions" class="display dataTable" cellspacing="0" width="100%" role="grid" aria-describedby="expressions_info" style="width: 100%;">
<thead>
    <tr role="row"><th rowspan="1" colspan="1">Wyrażenie</th><th rowspan="1" colspan="1">Źródło</th></tr>
</thead>
<tbody>
{% for expr in meaning.orig_expressions %}
    <tr role="row" class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}">
        <td class="sorting_1"><a href="{{ expr.link.exact_link }}">{{ expr.text }}</a></td>
        <td><a href="{{ expr.link.source.url }}">{{ expr.link.source.name }}</a></td>
    </tr>
{% endfor %}
{% for expr in meaning.gen_expressions %}
    <tr role="row" class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}">
        <td class="sorting_1"><a href="#">{{ expr|upper }}</a></td>
        <td><a href="#">AUTO</a></td>
    </tr>
{% endfor %}
</tbody>
</table>
{% endfor %}