{% extends "base.html" %} {% from "_icons.html" import icon %} {#- Captures (#398, ADR-008, DESIGN.md "Captures as marginalia"): every document's marks, notes and quotes as ruled rows with a hanging flag, by document and type. The filters are a GET form that works without the script; app.js filters in place and takes a row out at once on Remove, with Undo in the toast (D-723 ruling 1): no struck-through row, no Restore. -#} {% block title %}{{ t('captures.title') }} · {{ t('common.app') }}{% endblock %} {% block main %}

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

{{ summary }}

{% if groups %}
{%- for k in ('all',) + kinds %} {%- endfor %}
{% endif %}

{% if not groups %}

{{ t('captures.empty') }}

{% else %}

{{ t('captures.none') }}

{% endif %} {% for group in groups %}

{{ group.title }}

{% if group.authors %}{{ group.authors }} · {% endif %}{{ t('captures.count', n=group.rows | length) }}

{% if group.off %}

{{ t('captures.' ~ group.off, file=group.file) }}

{% endif %} {% if group.rows %}
    {%- for row in group.rows %}
  1. {{ t('capture.kind_' ~ row.type) }}

    {%- if row.state == 'found' %}

    {{ row.at }}

    {%- else %} {#- a state the page can't act on: the Listen page's icon beside its word (#955, #1012) #}

    {{ icon('info', 's') }}{{ t('captures.no_audiobook') if row.state == 'no-audiobook' else t('capture.' ~ row.state | replace('-', '_')) }}

    {%- endif %}
    “{{ row.sentence }}”
    {%- if row.text %}

    {{ row.text }}

    {%- endif %}

    {%- if row.href %}{{ icon('play', 's') }}{{ t('captures.listen') }}{% endif -%}

  2. {%- endfor %}
{% endif %}
{% endfor %}
{% if groups %} {#- the files (#399, ADR-008 2.1 item 7, D-850): the design's export column, as files a person places, never a connection to a program. Each takes the captures the filters show, into the folder typed beside it; a file there is replaced only after the person says yes to the question that comes up in its place. The buttons are drawn disabled until app.js is in (#350). -#} {% endif %}
{#- the toast after a removal: its type's flag, the words, and Undo, as on the Listen page -#}
{% endblock %}