{% extends "base.html" %} {% load compress crispy_forms_tags humanize i18n icons permissions static translations %} {% block extra_script %} {% compress js %} {% endcompress %} {% endblock extra_script %} {% block breadcrumbs %} {% path_object_breadcrumbs object %}
  • {% translate "Screenshots" %}
  • {% endblock breadcrumbs %} {% block content %} {% perm 'screenshot.delete' object as user_can_delete_screenshot %} {% perm 'screenshot.edit' object as user_can_edit_screenshot %} {% if add_form %}
    {% csrf_token %}

    {% translate "Add new screenshot" %}

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