{% extends "base.html" %} {% load i18n %} {% load permissions %} {% load translations %} {% load crispy_forms_tags %} {% load metrics %} {% block breadcrumbs %} {% path_object_breadcrumbs path_object %} {% endblock %} {% block content %} {% announcements component=object %} {% include "snippets/component/state.html" %} {% include "snippets/watch-dropdown.html" with project=object.project component=object %} {% perm 'meta:vcs.status' object as user_can_see_repository_status %} {% perm 'project.permissions' object as user_can_manage_acl %} {% perm 'reports.view' object as user_can_view_reports %} {% perm 'translation.add' object as user_can_add_translation %} {% perm 'component.edit' object as user_can_edit_component %}
{% include "snippets/list-objects.html" with objects=translations name_source="language" label=_("Language") is_glossary=object.is_glossary add_link="translation" %}
{% if user.is_authenticated %} {% for alert in alerts %}
{% if alert.obj.doc_page %} {% documentation_icon alert.obj.doc_page alert.obj.doc_anchor right=True %} {% endif %} {{ alert }} {% if alert.dismissed %} {% trans "dismissed" %} {% endif %}
{% render_alert alert %}
{% endfor %} {% else %} {% trans "Please sign in to see the alerts." as msg %} {% show_message "error" msg %} {% endif %}
{% include "snippets/info.html" with project=object.project component=object stats=object.stats metrics=object|metrics show_source=True %}
{% if replace_form %}

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

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

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

{% crispy bulk_state_form %}
{% endif %}
{% include "last-changes-content.html" %} {% trans "Browse all component changes" %}
{% if announcement_form %}

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

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

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

{% endif %} {% if rename_form or delete_form %}
{% if rename_form %}

{% trans "Organize component" %}

{% crispy rename_form %}
{% endif %} {% if delete_form %} {% include "trans/delete-form.html" %} {% endif %}
{% endif %} {% if user_can_see_repository_status %}

{% trans "Loading…" %}

{% endif %} {% if user.is_authenticated %}
{% if not user_can_view_reports %} {% trans "You don't have permission to view reports for all users, only your contributions will be listed." as msg %} {% show_message "warning" msg %} {% endif %}

{% documentation_icon 'devel/reporting' 'credits' right=True %} {% trans "Credits" %}

{% trans "Lists all translators contributing to this component in a given time period. Useful for inclusion in documentation or the app itself, to thank translators and generate feedback to them." %}

{% crispy reports_form %}

{% documentation_icon 'devel/reporting' 'stats' right=True %} {% trans "Contributor stats" %}

{% trans "Reports the number of strings and words translated by each translator." %}

{% crispy reports_form %}
{% endif %}
{% endblock %}