{# This template is also rendered with each entry (i.e., `rendered_templates`), and has access to all of the main entry-specific template values. All that is relevant here is the `analyses` variable. #} {%- import "lexicon.macros" as macros with context -%} {%- import "korp.macros" as korp with context -%}
{% for grouper, forms in analyses_right|groupby('lemma') %} {% for lemmagroup, lemmafs in forms|groupby('pos') %} {% if current_pair_settings.show_korp_search %} {% if 'Der' in grouper %}
{{ grouper }}
{% else %} {% if lemmagroup and grouper %}
{{ grouper }} {{ korp.link_lemma(grouper) }}
{% else %}
{{ grouper }}
{% endif %} {% endif %} {% else %}
{{ grouper }}
{% endif %}
{% endfor %} {% endfor %}
{# vim: set ts=4 sw=4 tw=72 syntax=htmljinja : #}