{% extends "base.html" %} {% from "_icon_btn.html" import icon_button %} {% block title %}Library — Paperful{% endblock %} {% block content %} {% macro collection_line(node) %} {{ node.name }} {{ node.item_count }} {{ node.missing_pdf }}
{{ icon_button('Set scope', 'scope', type='submit') }}
{% endmacro %} {% macro collection_nodes(nodes) %} {% for node in nodes %} {% if node.children %}
{{ collection_line(node) }}
{{ collection_nodes(node.children) }}
{% else %}
{{ collection_line(node) }}
{% endif %} {% endfor %} {% endmacro %}

Library

{% if error %}
{{ error }}
{% endif %}

Collections

{% if collection_tree %}
{{ collection_nodes(collection_tree) }}
{% else %}

No collections loaded.

{% endif %}
{% if prefs.collection and items %}

Items in {{ prefs.collection }}

{% for row in items %} {% endfor %}
TitleYearPDFSummary
{{ row.title }} {{ row.year or '' }} {% if row.has_pdf %}yes{% else %}no{% endif %} {% if row.has_summary %}yes{% else %}—{% endif %} {{ icon_button('Detail', 'detail', onclick="document.getElementById('lib-" ~ row.key ~ "').showModal()") }}

{{ row.title }} · {{ row.key }}

{% if row.has_summary %} {% endif %} {% if prefs.advanced and briefs.llm_on and row.has_pdf %}
{% endif %}
{% elif prefs.collection %}

No items loaded for this collection.

{% else %}

Set a collection chip to list items here.

{% endif %} {% endblock %}