{# images displayed by default; disable if no images are available #}
{# translators: label for checkbox toggle to show the images panel for a document #}
{# translators: label for checkbox toggle to show the transcription panel for a document #}
{# translation displayed by default; disable if no content is available #}
{# translators: label for checkbox toggle to show the translation panel for a document #}
{% comment %}
TODO: Edit both transcription and translation at once.
- Add an "edit" button by the dropdown for the non-active panel in edit_mode
(i.e. translation if you are already editing a transcription, and vice versa)
- This button will instantiate a second tahqiq for each canvas, populated by
annotations linked to the selected footnote
{% endcomment %}
{# header row #}
{# translators: label for header above Image panel in viewer #}
{% translate "Image" %}
{# translators: label for header above Transcription panel in viewer #}
{% translate "Transcription" %}
{# translators: label for header above Translation panel in viewer #}
{% translate "Translation" %}
{# label row #}
{# unused (no image label, needed for column alignment) #}
{% if edit_mode == "transcribing" %}
{# show disabled details with source label in editor mode #}
Editor{{ authors_count|pluralize }}: {{ source_label }}
{% elif document.digital_editions.count %}
{# dropdown is disabled by default; enable if javascript is active #}
{% if document.digital_editions.0 and not 'model' in document.digital_editions.0.source.source_type.type %}
{# Translators: Label for editors of a transcription #}
{% blocktranslate with eds=document.digital_editions.0.source.all_authors|default:document.digital_editions.0.source count counter=document.digital_editions.0.source.authors.count trimmed %}
Editor: {{ eds }}
{% plural %}
Editors: {{ eds }}
{% endblocktranslate %}
{% elif document.digital_editions.0 %}
{{ document.digital_editions.0.source }}
{% endif %}
{% for ed in document.digital_editions.all %}
{% endfor %}
{% endif %}
{% if edit_mode == "translating" %}
{# show disabled details with source label in editor mode #}
Translator{{ authors_count|pluralize }}: {{ source_label }}
{% elif document.digital_translations.count %}
{# dropdown is disabled by default; enable if javascript is active #}
{# Translators: Label for authors of a translation #}
{% blocktranslate with eds=document.default_translation.source.all_authors count counter=document.default_translation.source.authors.count trimmed %}
Translator: {{ eds }}
{% plural %}
Translators: {{ eds }}
{% endblocktranslate %}
{{ document.default_translation.source.all_languages }}
{% for tr in document.digital_translations.all %}
{% endfor %}
{% endif %}
{# loop based on canvases (for canvas with no image, image_info is a placeholder) #}
{% for canvas_uri, image_info in images.items %}
{# only images that are part of the current document are zoomable #}
{{ image_info.shelfmark }} {{ image_info.label }}
{% if not image_info.excluded %}
{% if edit_mode %}
{# popout and close button #}
{# tahqiq toolbar for switching annotation tools #}