{# This manages paradigm layouts, which all have a table structure and are more or less simple to render. #} {%- macro full_paradigm_link() %} {%- set lemma_key = lexicon_entry|xpath('lg/l')|first|text %} {%- set lemma_pos = lexicon_entry|xpath('lg/l/@pos')|first %} {%- trans -%}Full paradigm{%- endtrans -%} → {% endmacro -%} {% if layout %} {# when this appears the second time in the mobile style, the IDs are different #} {% set multiple_types = layout|length > 1 %} {% set use_dropdown = layout|length > 3 %} {# Construct the navigation menu when there are multiple paradigm types generated for this entry. #} {# TODO: if there are tons of tabs need a different UI, dropdown? #} {{ mobile_layout_index }} {% if multiple_types %} {% if use_dropdown %}
{% else %} {% endif %} {% endif %}{{ layout_desc }}
{% endif %} {{ full_paradigm_link() }}