{% extends "base.html" %} {% load compress crispy_forms_tags i18n icons permissions static translations %} {% block extra_script %} {% compress js %} {% endcompress %} {% endblock extra_script %} {% block breadcrumbs %} {% path_object_breadcrumbs object %}
  • {% translate "Browse" %}
  • {% endblock breadcrumbs %} {% block content %} {% if object.component.slug == "-" %} {% for component in project.component_set.prefetch %} {% include "snippets/component/state.html" with object=component %} {% endfor %} {% else %} {% include "snippets/component/state.html" with object=object.component %} {% endif %} {% perm 'unit.add' object as user_can_add_unit %} {% if user_can_add_unit %} {% icon "plus-circle.svg" %} {{ object.component.get_add_label }} {% endif %}
    {% crispy search_form %}
    {% if not units %} {% translate "No strings found!" %} {% else %} {% include "snippets/embed-units.html" with translation=object include_search=True component=object.component %} {% endif %} {% endblock content %}