expression_info.html
1.47 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.all %}{% if forloop.first %}{{ domain.name }}{% else %}; {{ domain.name }}{% endif %}{% endfor %}
{% 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 %}
<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.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><a href="{{ expr.link.source.url }}">{{ expr.link.source.name }}</a></td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
{% endfor %}