{% load i18n store_tags cleanhtml cache profile_tags locale %} {% get_current_language as LANGUAGE_CODE %} {% get_current_language_bidi as LANGUAGE_BIDI %} {% cache 0 unit_edit unit.id unit.mtime cantranslate cansuggest canreview altsrcs user.id LANGUAGE_CODE unit.get_terminology %}
{% if unit.getcontext and unit.locations != unit.context %} {% endif %} {% if unit.developer_comment or unit.locations %} {% endif %} {% with unit.get_terminology as terms %} {% if terms %} {% endif %} {% endwith %}
{% include 'editor/units/xhr_checks.html' %}
{{ form.id.as_hidden }} {{ form.index.as_hidden }}
{% for altunit in altsrcs %}
{{ altunit.store.translation_project.language.name }}
{% if cansuggest or cantranslate %}
{% endif %}
{% for i, target, title in altunit|pluralize_target %}
{{ target|highlight_placeables }}
{% endfor %}
{% endfor %}
{{ source_language.name }}
{% if cansuggest or cantranslate %} {% endif %}
{% for i, source, title in unit|pluralize_source %}
{{ source|highlight_placeables }}
{% endfor %}
{% if cantranslate %} {% endif %} {% if cansuggest %} {% endif %} {% if cansuggest and cantranslate %} {% endif %}
{{ form.state }} {{ form.state.label_tag }}
{% if unit.submitted_by %}
{{ unit.submitted_by.username }}
{% endif %} {{ form.target_f }} {% if unit.submitted_by and unit.submitted_on %}
{% with reviewer=unit.get_reviewer %} {% if reviewer %}
({% blocktrans with url=reviewer.get_absolute_url%}reviewed by {{ reviewer }}{% endblocktrans %}) {% endif %} {% endwith %}
{% endif %} {% if language.specialchars or language.direction == "rtl" %} {% if cantranslate or cansuggest %}
{% if language.direction == "rtl" %} RLM LRM RLE LRE RLO LRO PDF ZWJ ZWNJ {% endif %} {% for specialchar in language.specialchars %} {% if not specialchar.isspace %} {{ specialchar }} {% else %} {% endif %} {% endfor %}
{% endif %} {% endif %}
{% if cantranslate %}{% trans "Add Comment" %}{% endif %} {% trans 'Show Timeline' %} {% trans 'Hide Timeline' %} {% if cantranslate %}

{{ comment_form.translator_comment }}

{% endif %}
{% if unit.translator_comment %}
{% include "editor/units/xhr_comment.html" %}
{% endif %} {% if suggestions %}
{% trans 'User suggestions' %}
{% for sugg, score in suggestions %}
{% for i, target, diff, title in sugg|pluralize_diff_sugg %}
{% if sugg.user %}
{{ sugg.user.username }}
{% endif %}
{% if canreview %} {% else %} {% if user.is_authenticated and user == sugg.user %} {% endif %} {% endif %}
{{ diff }}
{% block suggestion_comment %}{% endblock %}
{% endfor %}
{% endfor %}
{% endif %}
{% endcache %}