From 37298690251faed707496f2db7fa7edb00ebedce Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 28 Oct 2018 10:25:28 +0100 Subject: Improved view for the list of public feeds. --- src/web/templates/feed_list_per_categories.html | 2 -- src/web/views/feed.py | 2 +- src/web/views/user.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/web/templates/feed_list_per_categories.html b/src/web/templates/feed_list_per_categories.html index 4b0e517e..396139a4 100644 --- a/src/web/templates/feed_list_per_categories.html +++ b/src/web/templates/feed_list_per_categories.html @@ -17,7 +17,6 @@
-{% if feeds | length != 0 %}
@@ -51,4 +50,3 @@ $(document).ready(function() { }); }); -{% endif %} diff --git a/src/web/views/feed.py b/src/web/views/feed.py index 9fa4b089..297b5521 100644 --- a/src/web/views/feed.py +++ b/src/web/views/feed.py @@ -26,7 +26,7 @@ feed_bp = Blueprint('feed', __name__, url_prefix='/feed') @login_required @etag_match def feeds(): - "Lists the subscribed feeds in a table." + "Lists the subscribed feeds in a table." art_contr = ArticleController(current_user.id) return render_template('feeds.html', feeds=FeedController(current_user.id).read().order_by('title'), diff --git a/src/web/views/user.py b/src/web/views/user.py index c9c23ca7..534e1ded 100644 --- a/src/web/views/user.py +++ b/src/web/views/user.py @@ -37,7 +37,7 @@ def profile_public(nickname=None): filters['private'] = False if category_id: filters['category_id'] = category_id - feeds = FeedController(user.id).read(**filters).all() + feeds = FeedController(user.id).read(**filters).order_by('title') """word_size = 6 filters = {} -- cgit