From a83d4165bf03bb1bc4b863a4968c38da945fbdc4 Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Wed, 3 Jan 2018 01:21:33 +0100 Subject: [PATCH] Renamed rss feeds and made them the default feed on course pages --- feeds.py | 2 +- templates/course.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/feeds.py b/feeds.py index a2d38e5..73babe5 100644 --- a/feeds.py +++ b/feeds.py @@ -40,7 +40,7 @@ def feed(handle=None): course['updated'] = updated return Response(render_template('feed.atom', course=course, entries=entries), 200, {'Content-Type': 'application/atom+xml'}) -@app.route('/<handle>/rssfeed') +@app.route('/<handle>/rss') def rss_feed(handle): course = query('SELECT * FROM courses WHERE handle = ? AND visible', handle)[0] formats = query('''SELECT formats.* FROM formats diff --git a/templates/course.html b/templates/course.html index b0e085e..f82419e 100644 --- a/templates/course.html +++ b/templates/course.html @@ -91,7 +91,7 @@ {% endif %} <ul class="list-inline pull-right"> <li> - <a class="fa fa-rss-square" aria-hidden="true" href="{{url_for('feed', handle=course.handle)}}" style="text-decoration: none"></a> + <a class="fa fa-rss-square" aria-hidden="true" href="{{url_for('rss_feed', handle=course.handle)}}" style="text-decoration: none"></a> </li> {% if ismod() %} <li> -- GitLab