{% load static i18n %} {% load check_permissions alignments %} {% if texts %}

{% if texts|length >= 2 %} {% translate "Alignments" %} {% else %} {% translate "Alignment" %} {% endif %} {% if user|can_add_mlgr and texts|length >= 2 %}     {% translate 'Add' %} {% endif %}

{% for text in texts %} {% for alignment in text.meleager_alignment_text_1.all %}
{% render_alignment text alignment.alignment_data 0 %}
{% render_alignment text alignment.alignment_data 1 %} {% if user|can_change:alignment and user|can_delete:alignment %}
    {% translate 'Remove' %} {% if not alignment.is_orphan and not alignment.is_outdated %}     {% translate 'Edit' %} {% endif %}
{% endif %}
{% if alignment.is_orphan or alignment.is_outdated %}

{% if alignment.is_orphan %} {% translate 'Warning: a text of that alignment does not exist anymore.' %}
{% translate 'Feel free to contribute by replacing this alignment with a new one.' %} {% endif %} {% if alignment.is_outdated %} {% translate 'Warning: a text of that alignment has been modified since then.' %}
{% translate 'Feel free to contribute by replacing this alignment with a new one.' %} {% endif %}

{% endif %}
{% endfor %} {% endfor %}
{% endif %}