{% load i18n baseurl store_tags cleanhtml cache %} {% get_current_language as LANGUAGE_CODE %} {% get_current_language_bidi as LANGUAGE_BIDI %} {% cache settings.CACHE_TIMEOUT unit_edit unit.id unit.mtime cantranslate cansuggest canreview altsrcs profile.id LANGUAGE_CODE %}
{{ form.id.as_hidden }} {{ form.index.as_hidden }} {{ form.source_f.as_hidden }}
{% if unit.getcontext %} {% ifnotequal unit.locations unit.context %} {% endifnotequal %} {% endif %} {% if unit.developer_comment or unit.locations %} {% endif %} {% with unit.get_terminology as terms %} {% if terms %} {% endif %} {% endwith %}
{% if unit.get_qualitychecks.count %}
{% trans "Failing checks:" %}
    {% for check in unit.get_qualitychecks.iterator %}
  • {{ check.name }} {% if canreview %} {% endif %}
  • {% endfor %}
{% endif %}
{% for altunit in altsrcs %}
{{ altunit.store.translation_project.language.localname }}
{% if cansuggest or cantranslate %}
{% endif %}
{% for i, target, title in altunit|pluralize_target %}
{{ target|fancy_highlight }}
{% endfor %}
{% endfor %}
{{ source_language.localname }}
{% if cansuggest or cantranslate %}
{% endif %}
{% for i, source, title in unit|pluralize_source %}
{{ source|fancy_highlight }}
{% endfor %}
{% if cantranslate %} {% endif %} {% if cansuggest %} {% endif %} {% if cansuggest and cantranslate %} {% endif %}
{{ form.state }} {{ form.state.label_tag }}
{{ form.target_f }} {% if cantranslate or cansuggest %}
{% for specialchar in language.specialchars %} {% if not specialchar.isspace %} {{ specialchar }} {% else %} {% endif %} {% endfor %}
{% endif %} {% if form.initial.translator_comment or cantranslate %}
{% if form.initial.translator_comment %}
{{ form.translator_comment.label_tag }} {{ form.translator_comment }}
{% else %} {% trans "Add Comment" %}
{{ form.translator_comment }}
{% endif %}
{% endif %}
{% if suggestions %} {% for sugg, sugtitle in suggestions %}
{{ sugtitle }}
{% if canreview %} {% else %} {% if user.is_authenticated %} {% ifequal profile sugg.user %} {% endifequal %} {% endif %} {% endif %} {% for i, target, diff, title in sugg|pluralize_diff_sugg %}
{{ diff }}
{% endfor %}
{% endfor %} {% endif %}
{% endcache %}