{% if file_root in file_root_list %}
{% set index = file_root_list.index(file_root) %}
{% if index != 0 %}
< Previous
{% endif %}
{% if index != file_root_list|length - 1 %}
Next >
{% endif %}
{% endif %}
Submit Anomaly
{% if marked_viewed %}
{% else %}
{% endif %}
{% if 'rate' in suffixes %}
{% elif 'dark' in suffixes %}
{% elif 'uncal' in suffixes %}
{% elif suffixes|length == 1 %}
{% else %}
Unable to show image for: {{suffixes}}
{% endif %}
{% endblock %}