{% extends "base.html" %} {% load i18n %} {% load permissions %} {% load crispy_forms_tags %} {% load humanize %} {% load icons %} {% block breadcrumbs %}
  • {{ object.project }}
  • {% include "snippets/component-breadcrumb.html" %}
  • {% trans "Screenshots" %}
  • {% endblock %} {% block content %} {% perm 'screenshot.delete' object as user_can_delete_screenshot %} {% perm 'screenshot.edit' object as user_can_change_screenshot %} {% if add_form %}
    {% csrf_token %}

    {% trans "Add new screenshot" %}

    {{ add_form|crispy }}
    {% endif %} {% for screenshot in object_list %} {% with count=screenshot.units.count %} {% endwith %} {% endfor %}
    {% trans "Screenshot name" %} {% trans "Image" %} {% trans "Strings" %}
    {{ screenshot.name }} {{ screenshot.translation.language }}
    {% include "screenshots/screenshot_show.html" %}
    {{ count | intcomma }} {% if count == 0 %} {% icon "alert.svg" %} {% endif %} {% if user_can_change_screenshot %} {% trans "Edit" %} {% endif %} {% if user_can_delete_screenshot %}
    {% csrf_token %}
    {% endif %}
    {% include "paginator.html" %} {% endblock %}