{% load i18n %}
    {% for item in screenshots %} {% if item.id == screenshot.id %} {% if item.caption %}
  1. {{item.caption}}
  2. {% else %}
  3. {% trans "No name" %}
  4. {% endif %} {% elif item.caption %}
  5. {{item.caption}}
  6. {% else %}
  7. {% trans "No name" %}
  8. {% endif %} {% endfor %}