- {% set cat_id = (torrent.main_category.id|string) + '_' + (torrent.sub_category.id|string) %}
+ {% set cat_id = (torrent.main_category_id|string) + '_' + (torrent.sub_category_id|string) if use_elastic else (torrent.main_category.id|string) + '_' + (torrent.sub_category.id|string) %}
{% set icon_dir = config.SITE_FLAVOR %}
+ {% if use_elastic %}
+
+ {% else %}
+ {% endif %}
|
+ {% if use_elastic %}
+ {%if "highlight" in torrent.meta %}{{ torrent.meta.highlight.display_name[0] | safe }}{% else %}{{torrent.display_name}}{%endif%} |
+ {% else %}
{{ torrent.display_name | escape }} |
+ {% endif %}
{% if torrent.has_torrent %}{% endif %}
+ {% if use_elastic %}
+
+ {% else %}
+ {% endif %}
|
{{ torrent.filesize | filesizeformat(True) }} |
+ {% if use_elastic %}
+ {{ torrent.created_time | display_time }} |
+ {% else %}
{{ torrent.created_time.strftime('%Y-%m-%d %H:%M') }} |
+ {% endif %}
+
{% if config.ENABLE_SHOW_STATS %}
+ {% if use_elastic %}
+ {{ torrent.seed_count }} |
+ {{ torrent.leech_count }} |
+ {{ torrent.download_count }} |
+ {% else %}
{{ torrent.stats.seed_count }} |
{{ torrent.stats.leech_count }} |
{{ torrent.stats.download_count }} |
{% endif %}
+ {% endif %}
{% endfor %}