{#- Downloading the whole audiobook as one file (#725, LW-03): a disclosure with the two kinds and one button. app.js asks the server: a file built before is saved at once, else the job page builds it with progress and a Cancel button. When chosen chapters are not made yet, the box names them and offers the ready ones as a partial file. The same markup serves the library's rows and the Listen page. Import it "with context". -#} {% from "_icons.html" import icon %} {% macro book_box(document_id, name, named) %}
{{ icon('download', 's') }}{% if named %}{{ t('book.summary_named', name=name) }}{% else %}{{ t('book.summary') }}{% endif %}
{{ t('book.kind') }}

{{ t('book.hint_audiobook') }}

{{ t('book.hint_any_player') }}

{% endmacro %}