diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-10-28 10:25:28 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-10-28 10:25:28 +0100 |
commit | 37298690251faed707496f2db7fa7edb00ebedce (patch) | |
tree | e90230c35bd9c9f5a71931ce06c16bed1eadb72c /src | |
parent | specify npm version (diff) | |
download | newspipe-37298690251faed707496f2db7fa7edb00ebedce.tar.gz newspipe-37298690251faed707496f2db7fa7edb00ebedce.tar.bz2 newspipe-37298690251faed707496f2db7fa7edb00ebedce.zip |
Improved view for the list of public feeds.
Diffstat (limited to 'src')
-rw-r--r-- | src/web/templates/feed_list_per_categories.html | 2 | ||||
-rw-r--r-- | src/web/views/feed.py | 2 | ||||
-rw-r--r-- | 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 @@ <br /> -{% if feeds | length != 0 %} <div class="table-responsive"> <table id="table-feeds" class="table table-striped"> <thead> @@ -51,4 +50,3 @@ $(document).ready(function() { }); }); </script> -{% 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 = {} |