{% extends "base.html" %} {% load i18n %} {% load translations %} {% load crispy_forms_tags %} {% block breadcrumbs %} {% if project %}
  • {{ project.name }}
  • {% if component %}
  • {{ component.name }}
  • {% endif %} {% if language %}
  • {{ language }}
  • {% endif %} {% endif %}
  • {% trans "Search" %}
  • {% endblock %} {% block content %} {% if show_results %}
    {% crispy search_form %}
    {% if page_obj.object_list %}
    {% for unit in page_obj.object_list %}

    {% get_state_flags unit %} {{ unit.translation }}

    {{ unit.translation.component.source_language }} {% format_translation unit.source unit.translation.component.source_language search_match=search_query %} {{ unit.translation.language }} {% format_translation unit.target unit.translation.language unit.translation.plural search_match=search_query %}

    {% endfor %}
    {% include "paginator.html" %} {% else %} {% trans "No matching strings found." as msg %} {% show_message "info" msg %} {% endif %} {% else %}
    {% include "snippets/search-form.html" %}
    {% endif %} {% endblock %}