{% extends "base.html" %} {% from "_remove.html" import remove_box with context %} {% from "_icons.html" import icon %} {#- The library (#389, DESIGN.md "Library"): the opener, then every document in one table. -#} {% block title %}{{ t('library.title') }} · {{ t('common.app') }}{% endblock %} {% block main %}

{{ t('library.title') }}

{{ t('library.sub', n=rows|length) }}

{% if not voice_installed %}
{{ icon('alert', 'l') }}
{% if voice_partly %}

{{ t('library.partly_title') }} {{ t('library.partly_body', languages=voice_partly) }}

{% else %}

{{ t('library.notice_title') }} {{ t('library.notice_body', size=voice_size) }}

{% endif %}
{{ t('library.notice_cta') }}
{% endif %}

{{ t('library.open_title') }}

{{ t('library.open_hint', types=types, limit=limit) }}

{% if paste %}
{{ icon('text') }}{{ t('library.paste') }}{{ icon('chev', 's') }}

{% endif %}

{% if rows %} {#- the search (#416): a GET form that works without the script; app.js filters in place -#}

{% if query and not shown %}{{ t('library.search_none', q=query) }}{% endif %}

{% for row in rows %} {% endfor %}
{{ t('library.caption') }}
{{ t('library.col_document') }} {{ t('library.col_state') }} {{ t('library.col_listened') }} {{ t('library.col_opened') }}
{{ row.title }} {% if row.meta %}{{ row.meta }}{% endif %} {% if row.document %}{{ remove_box(row.document, removals[row.id], row.id == busy_document, true) }}{% endif %} {{ icon(row.chip[1], 's') }}{{ t('library.state_' ~ row.state) }} {% if row.made is not none %} {{ t('library.made', n=row.made) }} {% elif row.audio %} {% if row.listened %}{{ t('library.listened', n=row.listened) }}{% else %}{{ t('library.not_started') }}{% endif %} {% else %} {{ t('library.no_audio') }} {% endif %} {{ row.opened }}
{% endif %}

{{ t('library.empty_title') }}

{{ t('library.empty_body') }}

{#- the design repository's own made-up sentence, in the interface's language -#}
{{ t('library.printed') }}

{{ t('library.specimen_a') }} {{ t('library.specimen_cite') }}{{ t('library.specimen_b') }} {{ t('library.specimen_stat') }}{{ t('library.specimen_c') }}

{{ t('library.read') }}

{{ t('library.specimen_read') }}

{% endblock %}