{% extends "layout.html" %} {% block title %}{{ torrent.display_name }} :: {{ config.SITE_NAME }}{% endblock %} {% block metatags %} {% set uploader_name = torrent.user.username if (torrent.user and not torrent.anonymous) else 'Anonymous' %} {% endblock %} {% block body %} {% from "_formhelpers.html" import render_field %}

{% if can_edit %} {% endif %} {{ torrent.display_name }}

Category:
Date:
{{ torrent.created_time.strftime('%Y-%m-%d %H:%M UTC') }}
Submitter:
{% set user_url = torrent.user and url_for('users.view_user', user_name=torrent.user.username) %} {%- if not torrent.anonymous and torrent.user -%} {{ torrent.user.username }} {%- else -%} Anonymous {% if torrent.user and (g.user == torrent.user or g.user.is_moderator) %}({{ torrent.user.username }}){% endif %} {%- endif -%} {% if g.user and g.user.is_superadmin and torrent.uploader_ip %} ({{ torrent.uploader_ip_string }}) {% endif %}
Seeders:
{% if config.ENABLE_SHOW_STATS %}{{ torrent.stats.seed_count }}{% else %}Coming soon{% endif %}
Information:
{% if torrent.information %} {{ torrent.information_as_link | safe }} {% else %} No information. {% endif%}
Leechers:
{% if config.ENABLE_SHOW_STATS %}{{ torrent.stats.leech_count }}{% else %}Coming soon{% endif %}
File size:
{{ torrent.filesize | filesizeformat(True) }}
Completed:
{% if config.ENABLE_SHOW_STATS %}{{ torrent.stats.download_count }}{% else %}Coming soon{% endif %}
Info hash:
{{ torrent.info_hash_as_hex }}
{%- if torrent.description -%} {# Escape newlines into html entities because CF strips blank newlines #} {{- torrent.description | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) -}} {%- else -%} #### No description. {%- endif -%}
{% cache 86400, "filelist", torrent.info_hash_as_hex %} {% if files and files.__len__() <= config.MAX_FILES_VIEW %}

File list

{% else %}
  • {{ key }} ({{ value | filesizeformat(True) }})
  • {% endif %} {% endfor %}
    {% elif files %}

    Too many files to display.

    {% else %}

    File list is not available for this torrent.

    {% endif %} {% endcache %}

    Comments - {{ torrent.comment_count }}

    {% for comment in comments %}

    {{ comment.user.username }} {% if comment.user.id == torrent.uploader_id and not torrent.anonymous %} (uploader) {% endif %}

    {{ comment.user.userlevel_str }}
    {{ comment.created_time.strftime('%Y-%m-%d %H:%M UTC') }} {% if comment.edited_time %} (edited) {% endif %}
    {% if g.user.id == comment.user_id and not comment.editing_limit_exceeded and (not torrent.comment_locked or comment_form) %} {% endif %} {% if g.user.is_superadmin or (g.user.id == comment.user_id and not torrent.comment_locked and not comment.editing_limit_exceeded) %}
    {% endif %}
    {# Escape newlines into html entities because CF strips blank newlines #}
    {{- comment.text | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) -}}
    {% if g.user.id == comment.user_id and comment_form %}
    {{ comment_form.csrf_token }}
    {% if config.USE_RECAPTCHA and g.user.age < config['ACCOUNT_RECAPTCHA_AGE'] %}
    {% if comment_form.recaptcha.errors %}

    CAPTCHA error:

      {% for error in comment_form.recaptcha.errors %}
    • {{ error }}
    • {% endfor %}
    {% endif %} {{ comment_form.recaptcha }}
    {% endif %}
    {% endif %}
    {% endfor %} {% if torrent.comment_locked %}

    Comments have been locked.

    {% endif %} {% if comment_form %}
    {{ comment_form.csrf_token }}
    {{ render_field(comment_form.comment, class_='form-control') }}
    {% if config.USE_RECAPTCHA and g.user.age < config['ACCOUNT_RECAPTCHA_AGE'] %}
    {% if comment_form.recaptcha.errors %}

    CAPTCHA error:

      {% for error in comment_form.recaptcha.errors %}
    • {{ error }}
    • {% endfor %}
    {% endif %} {{ comment_form.recaptcha }}
    {% endif %}
    {% endif %}
    {% if g.user and g.user.age > config['RATELIMIT_ACCOUNT_AGE'] %} {% endif %} {% endblock %}