{% extends "includes/crud/table_list.html" %} {% load trans blocktrans from i18n %} {% block top_left_menu_items %} {% endblock top_left_menu_items %} {% block create_button %} {% url "projects_translations_create" project.slug as create_url %} {% trans "Add translation" as create_text %} {% include "includes/crud/create_button.html" with url=create_url text=create_text %} {% endblock create_button %} {% block list_placeholder_icon_class %} fa-duotone fa-language {% endblock list_placeholder_icon_class %} {% block list_placeholder_header %} {% blocktrans trimmed %} No translations exist yet {% endblocktrans %}
{% blocktrans trimmed %} Enable translations of your project by attaching projects configured with a different language. {% endblocktrans %}
{% endblock list_placeholder_header %} {% block list_placeholder_text %} {% trans "Learn more" %} {% endblock list_placeholder_text %} {% block list_item_right_buttons %} {% comment %} {# TODO there is no edit view for this model, only create and delete #} {% endcomment %} {% url "projects_translations_delete" project.slug object.slug as form_url %} {% trans "Remove translation" as action_text %} {% blocktrans trimmed asvar content_text with language=object.get_language_display name=project.name %} Remove project {{ language }} translation for project {{ name }}? {% endblocktrans %} {% include "includes/crud/remove_button.html" with id=object.pk form_url=form_url action_text=action_text content_text=content_text %} {% endblock list_item_right_buttons %} {% block list_item_image %} {% include "projects/includes/project_image.html" with project=object %} {% endblock list_item_image %} {% block list_item_header %} {{ object.name }}
{{ object.get_language_display }}
{% endblock list_item_header %} {% block list_item_meta %} {{ object.get_docs_url }} {% endblock list_item_meta %}