{% macro render_column_header(header_class, header_style, center_text=False, sort_key=None, header_title=None) %} {% set class_suffix = (search.sort == sort_key) and ("_" + search.order) or "" %} {% set th_classes = filter_truthy([header_class, sort_key and "sorting" + class_suffix, center_text and "text-center"]) %}
{% if use_elastic %}
{% else %}
{% endif %}
![]() |
{% set torrent_id = torrent.meta.id if use_elastic else torrent.id %} {% set com_count = torrent.comment_count %} {% if com_count %} {{ com_count -}} {% 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 %}