{% extends "base.html" %} {% load crispy_forms_tags i18n metrics permissions translations %} {% block nav_pills %} {% perm 'project.edit' object.project as user_can_edit_project %} {% perm 'upload.perform' object as user_can_upload_translation %} {% endblock nav_pills %} {% block breadcrumbs %} {% path_object_breadcrumbs path_object %} {% endblock breadcrumbs %} {% block content %} {% announcements language=language project=project %} {% perm 'project.edit' object.project as user_can_edit_project %} {% get_translate_url object as translate_url %} {% perm 'upload.perform' object as user_can_upload_translation %}
{% include "snippets/translation.html" %}
{% include "snippets/list-objects.html" with objects=translation_objects list_categories=categories name_source="component_name" label=_("Component") %} {% include "paginator.html" with page_obj=translations anchor="components" %}
{% show_info project=project language=language stats=language_stats metrics=object|metrics show_full_language=False %}
{% format_last_changes_content last_changes=last_changes user=user %} {% translate "Browse all changes for this language" %}
{% if last_announcements %}
{% format_last_changes_content last_changes=last_announcements user=user %} {% translate "Browse all project changes" %}
{% endif %} {% if autoform %}
{% include "snippets/autoform.html" with object=object autoform=autoform %}
{% endif %} {% if delete_form %}
{% include "trans/delete-form.html" %}
{% endif %} {% if replace_form %}

{% documentation_icon 'user/translating' 'search-replace' right=True %} {% translate "Search and replace" %}

{% crispy replace_form %}
{% endif %} {% if bulk_state_form %}

{% documentation_icon 'user/translating' 'bulk-edit' right=True %} {% translate "Bulk edit" %}

{% crispy bulk_state_form %}
{% endif %} {% if user_can_upload_translation %}

{% documentation_icon 'user/files' 'upload' right=True %} {% translate "Upload" %}

{% blocktranslate trimmed %} Project-wide uploads are currently not supported. Translation files need to be uploaded on the individual translations. Switch to the "Components" tab above, open the desired component, and perform the upload there. {% endblocktranslate %}

{% endif %} {% if announcement_form %}

{% documentation_icon 'admin/announcements' right=True %} {% translate "Post announcement" %}

{% csrf_token %} {{ announcement_form|crispy }}

{% translate "The message is shown for all translations within the project, until its given expiry, or permanently until it is deleted." %}

{% endif %}
{% endblock content %}