{% macro recursive_file_tree(tree) %} {% import _self as self %} {% for key, value in tree %} {% if value is iterable %}
{{ key }}
{{ self.recursive_file_tree(value) }}
{% else %}
{{ key }}
{{ value | format_bytes }}
{% endif %} {% endfor %} {% endmacro %} {% from _self import recursive_file_tree %} {% extends 'default/layout.html.twig' %} {% block title %}{{ 'Torrent'|trans }} #{{ torrent.id }} - {{ name }}{% endblock %} {% block main_content %}

{{ 'Torrent'|trans }} #{{ torrent.id }}

{# #}
{% if file.name %} {% endif %} {% if file.created %} {% endif %} {% if file.hash.v1 %} {% endif %} {% if file.hash.v2 %} {% endif %} {% if file['created by'] is defined %} {% endif %} {% if file.comment is defined %} {% endif %} {% for tree in file.tree %} {% endfor %} {% for tracker in trackers %} {% endfor %} {# #} {% for announces in trackers %} {% for tracker in announces %} {% endfor %} {% endfor %} {% if torrent.locales %} {% else %} {% endif %} {% if torrent.pages %} {% else %} {% endif %}
{{ 'Name'|trans }}
{{ file.name }}
{{ 'Created'|trans }}
{{ file.created | format_date }}
{{ 'Info hash v1'|trans }}
{{ file.hash.v1 }}
{{ 'Info hash v2'|trans }}
{{ file.hash.v2 }}
{{ 'Generated'|trans }}
{{ file['created by'] }}
{{ 'Comment'|trans }}
{{ file.comment }}
{{ 'Files'|trans }}
{{ recursive_file_tree(tree) }}
{{ 'Trackers'|trans }}
 
{{ tracker }}
{{ file.announce }} {% if file.announce not in trackers %} {% endif %}
{{ tracker }} {% if tracker not in trackers %} {% endif %}
 
{{ 'Locales'|trans }}
 
{{'Edit'|trans }}
{{'Add'|trans }}
 
{{ 'Pages'|trans }}
 
{{'Edit'|trans }}
{{'Add'|trans }}
{% endblock %}