{% load core_tags %} {% 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 %}{% if result.direct_preview_path %}{% snapshot_url snapshot result.direct_preview_path as preview_url %}{% else %}{% snapshot_preview_url snapshot display_path result.result as preview_url %}{% endif %}{% endif %}
{% if not STATIC_EXPORT %}📁{% endif %} {% if display_path %} ⬇️ {% endif %} {% if can_delete_outputs and result.result %} {% endif %}
{% if display_path %}

{% plugin_icon result.name %} {{result.name|plugin_name|truncatechars:20}}{% if result.size %} {{result.size|file_size:0}}{% endif %}

{% else %}

{% plugin_icon result.name %} {{result.name|plugin_name|truncatechars:20}}{% if result.size %} {{result.size|file_size:0}}{% endif %}

{% 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' %} {% endif %} {% endwith %} {% plugin_card result.result %}
{% 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 or not STATIC_EXPORT %}

📦 Other files

{% for item in loose_items %} {% if item.is_dir %} 📁 {{item.name}} {% else %} 📄 {{item.name}} {% endif %} {% empty %} 📁 Browse all files {% endfor %}
{% endif %}