{% extends "base.html" %} {% load i18n %} {% load translations %} {% load permissions %} {% load crispy_forms_tags %} {% load metrics %} {% block breadcrumbs %} {% path_object_breadcrumbs path_object %} {% endblock %} {% block content %} {% announcements project=object.project %} {% include "snippets/project/state.html" with object=object.project %} {% include "snippets/watch-dropdown.html" with project=object %} {% perm 'project.edit' object as user_can_edit_project %} {% perm 'reports.view' object as user_can_view_reports %}
{% include "snippets/list-objects.html" with objects=components list_categories=categories name_source="name" label=_("Component") add_link="component-category" %} {% include "paginator.html" with page_obj=components %}
{% include "snippets/info.html" with project=object.project stats=object.stats metrics=object|metrics show_source=True %}
{% include "snippets/list-objects.html" with objects=language_stats name_source="language" label=_("Language") project=object global_base=object.stats %}
{% include "last-changes-content.html" %} {% trans "Browse all project changes" %}
{% if last_announcements %}
{% include "last-changes-content.html" with last_changes=last_announcements %} {% trans "Browse all project changes" %}
{% endif %} {% 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 %} {% if user_can_edit_project and add_form %}

{% trans "Add a category" %}

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

{% trans "Rename category" %}

{% crispy rename_form %}

{% trans "Move category" %}

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