From 5af55245ec4e2e4d6bc1aead5dce61dc78b3c9fb Mon Sep 17 00:00:00 2001 From: TheAMM Date: Sat, 13 May 2017 08:17:22 +0300 Subject: [PATCH] [templates] Add category links to /view, add hover-text to category icons in list --- nyaa/templates/search_results.html | 6 +++--- nyaa/templates/view.html | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nyaa/templates/search_results.html b/nyaa/templates/search_results.html index d3ba158..95d18d5 100644 --- a/nyaa/templates/search_results.html +++ b/nyaa/templates/search_results.html @@ -1,7 +1,7 @@ {% macro render_column_header(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([sort_key and "sorting" + class_suffix, center_text and "text-center"]) %} - + {% if sort_key %} {% endif %} @@ -50,9 +50,9 @@ {% set cat_id = (torrent.main_category.id|string) + '_' + (torrent.sub_category.id|string) %} {% set icon_dir = config.SITE_FLAVOR %} - + - + {{ torrent.display_name | escape }} diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index eb09f2e..b2a7c48 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -13,7 +13,9 @@
Category:
-
{{ torrent.main_category.name }} - {{ torrent.sub_category.name }}
+
Date:
{{ torrent.created_time.strftime('%Y-%m-%d, %H:%M UTC') }}