{% 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 }}
{# strip all tags then apply whitelist markdown filters to prevent ping from remote #}
{{ file.comment | trim | striptags | url_to_markdown | markdown_to_html | nl2br }}
{% endif %}
{% if file.software %}
{{ 'Software' | trans }}
{# strip all tags then apply whitelist markdown filters to prevent ping from remote #}
{{ file.comment | trim | striptags | url_to_markdown | markdown_to_html | nl2br }}
{% endif %}
{% if file.comment %}
{{ 'Comment' | trans }}
{# strip all tags then apply whitelist markdown filters to prevent ping from remote #}
{{ file.comment | trim | striptags | url_to_markdown | markdown_to_html | nl2br }}
{% 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 %}