{% load static tz core_tags %} {{title}}
{% public_base_url as public_base %} Archive Icon ArchiveBox
Favicon {{title|truncatechars:120|safe}} {% if title_tags %} {% for tag in title_tags %} {{ tag.name }} {% endfor %} {% endif %}
{{num_outputs}} {% if num_failures %} + {{num_failures}} errors {% endif %}
{% if related_years %}
{% for entry in related_years %} {% if entry.snapshots|length > 1 %}
{{ entry.year }}
{% else %} {% endif %} {% endfor %}
{% endif %}
{% if related_snapshots %}
{{ related_snapshots|length }} {{oldest_archive_date|default:downloaded_datestr|default:bookmarked_date}}
{% else %} {{oldest_archive_date|default:downloaded_datestr|default:bookmarked_date}} {% endif %}
{% for result in archiveresults %} {% with display_path=result.path display_url='' preview_url='' %} {% if display_path %}{% snapshot_url snapshot display_path as display_url %}{% endif %} {% if display_path %}{% snapshot_preview_url snapshot display_path as preview_url %}{% endif %}
📁 {% if display_path %} ⬇️ {% endif %}
{% if display_path %}

{% plugin_icon result.name %} {{result.name|plugin_name|truncatechars:20}}{% if result.size %} ({{result.size|filesizeformat}}){% endif %}

{% else %}

{% plugin_icon result.name %} {{result.name|plugin_name|truncatechars:20}}{% if result.size %} ({{result.size|filesizeformat}}){% endif %}

{% endif %} {% if result.result %} {% with plugin_base=result.name|plugin_name %} {% if plugin_base == 'ytdlp' or plugin_base == 'yt-dlp' or plugin_base == 'youtube-dl' %} {% plugin_card result.result %} {% endif %} {% endwith %} {% endif %}
{% if result.result and display_path %} {% with plugin_base=result.name|plugin_name %} {% if plugin_base != 'ytdlp' and plugin_base != 'yt-dlp' and plugin_base != 'youtube-dl' %} {# Use plugin-specific card template when ArchiveResult is available #}
{% plugin_card result.result %}
{% else %} {# YT-DLP renders its file list in the body #} {% endif %} {% endwith %} {% elif result.is_metadata and display_path %}
{% output_card snapshot display_path result.name %}
{% elif display_path %} {# Fall back to generic iframe for filesystem-discovered files #}
{% endif %}
{% endwith %} {% endfor %} {% if loose_items %}

📦 Other files

{% for item in loose_items %} {% if item.is_dir %} 📁 {{item.name}} {% else %} 📄 {{item.name}} {% endif %} {% endfor %}
{% endif %} {% if failed_items %}

⚠️ Failed

{% for item in failed_items %} {% if item.is_dir %} 📁 {{item.name}} {% else %} 📄 {{item.name}} {% endif %} {% endfor %}
{% endif %}
{% if best_result.result %} {% plugin_full best_result.result as best_result_full_html %} {# Use plugin-specific fullscreen template when ArchiveResult is available #}
{% if best_result_full_html %}
{{ best_result_full_html }}
{% else %} {% endif %}
{% else %} {# Fall back to generic iframe #} {% endif %}