{% if torrent.status %}
{{ 'Yes' | trans }}
{% else %}
{{ 'No' | trans }}
{% endif %}
{% if session.moderator %}
{{ 'Approved' | trans }}
{% if torrent.approved %}
{{ 'Yes' | trans }}
{% else %}
{{ 'No' | trans }}
{% endif %}
{% endif %}
{% endif %}
{{ 'Common' | trans }}
{{ 'ID' | trans }}
#{{ torrent.id }}
{{ 'MD5' | trans }}
{{ torrent.md5file }}
{% if file.hash.v1 %}
{{ 'Info hash v1' | trans }}
{{ file.hash.v1 }}
{% endif %}
{% if file.hash.v2 %}
{{ 'Info hash v2' | trans }}
{{ file.hash.v2 }}
{% endif %}
{# visible in H1
{{ 'Filename'|trans }}
{{ file.name }}
#}
{% if file.created %}
{{ 'Created' | trans }}
{{ file.created | format_date }}
{% endif %}
{% if file.size %}
{{ 'Size' | trans }}
{{ file.size | format_bytes }}
{% endif %}
{% if file.pieces %}
{{ 'Pieces' | trans }}
{{ file.pieces | format_number }}
{% endif %}
{{ 'Private' | trans }}
{% if file.private %}
{{ 'Yes' | trans }}
{% else %}
{{ 'No' | trans }}
{% endif %}
{% if file.source %}
{{ 'Source' | trans }}
{# disable markdown as unsafe for unfiltered content #}
{#{{ file.source | url_to_markdown | markdown_to_html }}#}
{{ file.source }}
{% endif %}
{% if file.software %}
{{ 'Software' | trans }}
{# disable markdown as unsafe for unfiltered content #}
{#{{ file.software | url_to_markdown | markdown_to_html }}#}
{{ file.software }}
{% endif %}
{% if file.comment %}
{{ 'Comment' | trans }}
{# disable markdown as unsafe for unfiltered content #}
{#{{ file.comment | url_to_markdown | markdown_to_html }}#}
{{ file.comment }}
{% endif %}
{{ 'Contributors' | trans }}
{% for id, identicon in torrent.contributors %}
{% endfor %}
{{ 'Scrape' | trans }}
{{ 'Seeders' | trans }}
{{ torrent.scrape.seeders }}
{{ 'Peers' | trans }}
{{ torrent.scrape.peers }}
{{ 'Leechers' | trans }}
{{ torrent.scrape.leechers }}
{{ 'Files' | trans }}
{% for key, value in file.tree %}
{% if value is iterable %}
{{ recursive_file_tree(value) }}
{% else %}
{{ key }}
{{ value | format_bytes }}
{% endif %}
{% endfor %}
{{ 'Trackers' | trans }}
{% for tracker, status in trackers %}
{% if status %}
{{ tracker }}
{% else %}
{{ tracker }}
{% endif %}
{% endfor %}
{{ 'Locale' | trans }}
{% if torrent.locales %}
{% set i = 0 %}
{% for locale in torrent.locales | sort %}{% if i > 0 %},{% endif %} {{ locale | locale_name(locale) | u.title }}{% set i = i + 1 %}{% endfor %}
{% endif %}
{{ 'Category' | trans }}
{% if torrent.categories %}
{% set i = 0 %}
{% for category in torrent.categories | sort %}{% if i > 0 %},{% endif %} {{ category | trans_category | u.title }}{% set i = i + 1 %}{% endfor %}
{% endif %}
{{ 'Sensitive' | trans }}
{% if torrent.sensitive %}
{{ 'Yes' | trans }}
{% else %}
{{ 'No' | trans }}
{% endif %}
{{ 'Poster' | trans }}
{% if torrent.poster %}
{{ 'Yes' | trans }}
{% else %}
{{ 'No' | trans }}
{% endif %}
{{ 'Recent activity' | trans }}
{% if activities %}
{% for activity in activities %}