diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index c86333a..f314f6e 100644 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -36,6 +36,11 @@ table.torrent-list thead th a { filter: alpha(opacity=1); } +.category-icon { + width: 80px; + height: 28px; +} + table.torrent-list thead th.sorting:after, table.torrent-list thead th.sorting_asc:after, table.torrent-list thead th.sorting_desc:after { @@ -88,6 +93,19 @@ table.torrent-list tbody .comments i { padding-right: 2px; } +table.torrent-list td:first-child { + padding: 0 4px; +} +table.torrent-list td:nth-child(4) { + white-space: nowrap; +} +table.torrent-list td:nth-child(6) { + color: green; +} +table.torrent-list td:nth-child(7) { + color: red; +} + #torrent-description img { max-width: 100%; } diff --git a/nyaa/templates/search_results.html b/nyaa/templates/search_results.html index 4e41eb4..25b7142 100644 --- a/nyaa/templates/search_results.html +++ b/nyaa/templates/search_results.html @@ -1,11 +1,11 @@ {% 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 %}
- ![]() |
+ {% if use_elastic %}
+
+ {% else %}
+
+ {% endif %}
+ ![]() |
{% set torrent_id = torrent.meta.id if use_elastic else torrent.id %} @@ -78,13 +78,15 @@ {% endif %} {% if use_elastic %} - {%if "highlight" in torrent.meta %}{{ torrent.meta.highlight.display_name[0] | safe }}{% else %}{{torrent.display_name}}{%endif%} + {%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 torrent.has_torrent %} + + {% endif %} {% if use_elastic %} {% else %} @@ -100,12 +102,12 @@ {% if config.ENABLE_SHOW_STATS %} {% if use_elastic %} - | {{ torrent.seed_count }} | -{{ torrent.leech_count }} | +{{ torrent.seed_count }} | +{{ torrent.leech_count }} | {{ torrent.download_count }} | {% else %} -{{ torrent.stats.seed_count }} | -{{ torrent.stats.leech_count }} | +{{ torrent.stats.seed_count }} | +{{ torrent.stats.leech_count }} | {{ torrent.stats.download_count }} | {% endif %} {% endif %}