{% from "macros/actions.html" import delete_button %} {% macro upload_row(upload, current_account, config, header_start=1) %}
{{ upload.short_hash }} {% if not upload.is_approved %}

Upload has not yet been reviewed, and is not visible in public lists

{% endif %} {{ upload.dataset.slug }} {% if upload.dataset_parts %} For Dataset Parts {% endif %} Description

{{ upload.description }}

Method

{{ upload.method }}

⬇️ download ⬇️

{% if upload.account %} {% endif %} {% if upload.removable_by(current_account) %} {% set delete_url= config.api_prefix + "/uploads/" + upload.infohash %} {% endif %} {% if current_account and current_account.has_scope("review") and not upload.is_approved %} {% endif %}
{{ upload.torrent.file_name }}
Uploaded By
Seeders {{ seeders(upload.seeders) }}
Downloaders {{ downloaders(upload.leechers) }}
Size {{ upload.human_size }}
Torrent Size {{ upload.human_torrent_size }}
Files {{ upload.torrent.files | length }}
Piece size {{ upload.torrent.human_piece_size }}
Version {{ upload.torrent.version }}
Short Hash {{ upload.torrent.short_hash }}
v1 Infohash {{ upload.torrent.v1_infohash }}
v2 Infohash {{ upload.torrent.v2_infohash }}
Created
Updated
Actions {{ delete_button(url=delete_url, item_type="upload", name=upload.infohash)}}

review status: unapproved

{{ review_buttons(upload, config) }}
Files
{% for file in upload.torrent.files %} {{ file.path }} {{ file.human_size }} {% endfor %}
Trackers
{% for tracker_link in upload.torrent.tracker_links %} {% endfor %}
URL Updated
{{ tracker_link.tracker.announce_url }} {{ seeders(tracker_link.seeders) }} {{ downloaders(tracker_link.leechers) }} {% if tracker_link.last_scraped_at %} {% else %} {% endif %}
{% endmacro %} {% macro upload_collapsible(upload, review=False, config = None) %}
{{ upload.short_hash }} {{ upload.file_name }} {{ upload.human_size }} {{ torrent_stats(upload) }} {% if review %} {{ review_buttons(upload, config) }} {% else %} ⬇️ {% endif %}
{% endmacro %} {% macro review_buttons(upload, config) %} {% endmacro %} {% macro torrent_stats(upload, elt="span") %} {{ seeders(upload.seeders, elt=elt) }} {{ downloaders(upload.leechers, elt=elt) }} {% endmacro %} {% macro seeders(seeders, elt="span") %} <{{ elt }} class="upload-seeders seeders" title="{{ seeders }} seeders"> {% if seeders is none %} {% else %} {{ seeders }} {% endif %} {% endmacro %} {% macro downloaders(downloaders, elt="span") %} <{{ elt }} class="upload-downloaders downloaders" title="{{ downloaders }} downloaders"> {% if downloaders is none %} {% else %} {{ downloaders }} {% endif %} {% endmacro %}