{% load translations %} {% load i18n %} {% load crispy_forms_tags %} {% load permissions %} {% perm 'source.edit' project as user_can_edit_source %} {% perm 'screenshot.add' project as user_can_add_screenshot %} {% perm 'screenshot.edit' project as user_can_change_screenshot %}
{% for unit in units %} {% endfor %}
{% trans "Language" %} {% trans "Status" %} {% trans "Checks" %} {% trans "Edit" %}
{{ unit.translation.language }} {% get_state_flags unit %} {% show_checks unit.translation.component.project unit.checks user %} {% trans "Edit" %}
{% if user_can_edit_source %} {% endif %} {% if user_can_add_screenshot %} {% endif %} {% with units.0 as unit %} {% include "unit-details.html" %} {% with unit.get_source_comments as comments %} {% if comments %} {% endif %} {% endwith %} {% endwith %}
{% csrf_token %} {{ check_flags_form|crispy }}
{% csrf_token %} {{ priority_form|crispy }}
{% csrf_token %} {{ context_form|crispy }}
{% trans "Screenshot context" %}
{% for screenshot in source.screenshots.all %} {% include "screenshots/screenshot_show.html" %} {% empty %} {% trans "No screenshot currently associated!" %} {% endfor %} {% if user_can_change_screenshot %} {% trans "Manage screenshots" %} {% endif %}
{% csrf_token %}

{% trans "Add new screenshot" %}

{{ screenshot_form|crispy }}
{% trans "User comments" %}
{% with next as next_url %} {% include "list-comments.html" with object=unit.translation %} {% endwith %}