diff --git a/nyaa/routes.py b/nyaa/routes.py
index 5af9bfa..1a2564a 100644
--- a/nyaa/routes.py
+++ b/nyaa/routes.py
@@ -312,7 +312,6 @@ def _jinja2_filter_rfc822(date, fmt=None):
def render_rss(label, query):
rss_xml = flask.render_template('rss.xml',
term=label,
- site_url=flask.request.url_root,
query=query)
response = flask.make_response(rss_xml)
response.headers['Content-Type'] = 'application/xml'
diff --git a/nyaa/templates/layout.html b/nyaa/templates/layout.html
index c805a68..1b4eb87 100644
--- a/nyaa/templates/layout.html
+++ b/nyaa/templates/layout.html
@@ -16,7 +16,7 @@
make the navbar not look awful on tablets.
-->
-
diff --git a/nyaa/templates/rss.xml b/nyaa/templates/rss.xml
index 160120f..6e50971 100644
--- a/nyaa/templates/rss.xml
+++ b/nyaa/templates/rss.xml
@@ -4,16 +4,16 @@
RSS Feed for {{ term }}
- {{ site_url }}
-
+ {{ url_for('home', _external=True) }}
+
{% for torrent in query %}
{% if torrent.has_torrent %}
-
{{ torrent.display_name }}
- {{ site_url }}view/{{ torrent.id }}/torrent
+ {{ url_for('download_torrent', torrent_id=torrent.id, _external=True) }}
- {{ site_url }}view/{{ torrent.id }}
+ {{ url_for('view_torrent', torrent_id=torrent.id, _external=True) }}
{{ torrent.created_time|rfc822 }}
{% endif %}
diff --git a/nyaa/templates/search_results.html b/nyaa/templates/search_results.html
index 19b8f50..d3ba158 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 %}
@@ -28,19 +28,19 @@
{% call render_column_header("width:140px;", center_text=True, sort_key="id", header_title="In UTC") %}
Date
{% endcall %}
-
+
{% if config.ENABLE_SHOW_STATS %}
{% call render_column_header("width:50px;", center_text=True, sort_key="seeders", header_title="Seeds") %}
{% endcall %}
{% call render_column_header("width:50px;", center_text=True, sort_key="leechers", header_title="Leeches") %}
-
+
{% endcall %}
{% call render_column_header("width:50px;", center_text=True, sort_key="downloads", header_title="Completed downloads") %}
{% endcall %}
-
+
{% endif %}
@@ -54,9 +54,9 @@
- | {{ torrent.display_name | escape }} |
+ {{ torrent.display_name | escape }} |
- {% if torrent.has_torrent %}{% endif %}
+ {% if torrent.has_torrent %}{% endif %}
|
{{ torrent.filesize | filesizeformat(True) }} |