From 1f0f8cbeae2ff5075029bfd54dd042d1697c17d6 Mon Sep 17 00:00:00 2001 From: Ricardo Ribeiro Date: Tue, 16 May 2017 14:49:15 +0100 Subject: [PATCH 1/2] Add full torrent name to link "title" Now on ElasticSearch results as well --- nyaa/templates/search_results.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nyaa/templates/search_results.html b/nyaa/templates/search_results.html index b73994c..92608c7 100644 --- a/nyaa/templates/search_results.html +++ b/nyaa/templates/search_results.html @@ -60,9 +60,9 @@ {% 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 }} + {{ torrent.display_name | escape }} {% endif %} {% if torrent.has_torrent %}{% endif %} From d8ef29755ebcc3123c7a0acaf4ed56b8ab270ace Mon Sep 17 00:00:00 2001 From: Ricardo Ribeiro Date: Tue, 16 May 2017 15:08:47 +0100 Subject: [PATCH 2/2] Remove trailing spacebar on search_results --- nyaa/templates/search_results.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nyaa/templates/search_results.html b/nyaa/templates/search_results.html index 92608c7..f169b6f 100644 --- a/nyaa/templates/search_results.html +++ b/nyaa/templates/search_results.html @@ -60,7 +60,7 @@ {% 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 %} @@ -74,7 +74,7 @@ {{ torrent.filesize | filesizeformat(True) }} {% if use_elastic %} - {{ torrent.created_time | display_time }} + {{ torrent.created_time | display_time }} {% else %} {{ torrent.created_time.strftime('%Y-%m-%d %H:%M') }} {% endif %}