diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index 3368282..785c78f 100755 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -62,6 +62,18 @@ table.torrent-list tbody tr td a:visited { color: #1d4568; } +table.torrent-list tbody .comments { + float: right; + border: 1px solid #d7d7d7; + border-radius: 3px; + color: #383838; + padding: 0 5px 0 5px; + background-color: #ffffff; +} +table.torrent-list tbody .comments i { + padding-right: 2px; +} + #torrent-description img { max-width: 100%; } diff --git a/nyaa/templates/search_results.html b/nyaa/templates/search_results.html index f4c5ff2..4d2dea5 100644 --- a/nyaa/templates/search_results.html +++ b/nyaa/templates/search_results.html @@ -68,11 +68,14 @@ {{ category_name(cat_id) }} - {% 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.comments %}{{ torrent.comments | length }}{% 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 %}