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

    {% trans "Assigned source strings" %}

    {% include "screenshots/screenshot_sources_body.html" with sources=objects.units.order %}
    {% if user_can_change_screenshot %}
    {% csrf_token %}

    {% trans "Assign source strings" %}

    {% include "screenshots/screenshot_sources_search.html" %}
    {% endif %}

    {% trans "Image" %}

    {% include "screenshots/screenshot_show.html" with screenshot=object %}
    {% if user_can_change_screenshot %}
    {% csrf_token %}

    {% trans "Edit screenshot" %}

    {{ edit_form|crispy }}
    {% endif %}

    {% trans "Screenshot details" %}

    {% trans "Created" %}{{ object.timestamp|naturaltime }}
    {% trans "Uploaded by" %}{{ object.get_user_display }}
    {% trans "Language" %}{{ object.translation.language }}
    {% if user_can_delete_screenshot %}

    {% trans "Delete screenshot" %}

    {% trans "Deleting screenshot will remove it from all associated source strings." %}

    {% csrf_token %}
    {% endif %} {% endblock %}