expression_info.html 1.15 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>Kategoria:</strong> {% for category in meaning.categories.all %}{% if forloop.first %}{{ category.name }}{% else %}; {{ category.name }}{% endif %}{% endfor %}
<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">Wyrażenie pochodne</th><th rowspan="1" colspan="1">Źródło</th></tr>
</thead>
<tbody>
{% for expr in meaning.expressions.all %}
    {% if not expr.main_expression %}
    <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>{{ expr.mentions.all.0.text }}</td>
        <td><a href="{{ expr.link.source.url }}">{{ expr.link.source.name }}</a></td>
    </tr>
    {% endif %}
{% endfor %}
</tbody>
</table>
{% endfor %}