From e1eed1624349a87bd53449cf25d4c88f47b0479f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 28 Oct 2018 14:48:26 +0100 Subject: Added a listbox to select the categories. --- src/web/templates/user_stream.html | 21 ++++++++++++++++++++- src/web/views/user.py | 3 +-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/web/templates/user_stream.html b/src/web/templates/user_stream.html index 3c20b241..b05376a8 100644 --- a/src/web/templates/user_stream.html +++ b/src/web/templates/user_stream.html @@ -1,10 +1,29 @@ {% extends "layout.html" %} {% block content %}
+
+
+
+
+ + + +
+
+
+
+ +

+ {% if category %}
-

Articles from the category {{ category.name }}

+

Articles from the category {{ category.name }}

{% endif %} diff --git a/src/web/views/user.py b/src/web/views/user.py index a697eb5b..693f24b7 100644 --- a/src/web/views/user.py +++ b/src/web/views/user.py @@ -73,8 +73,7 @@ def user_stream(per_page, nickname=None): return render_template('user_stream.html', user=user, articles=articles.offset(offset).limit(per_page), category=category, - pagination=pagination, - nickname=nickname) + pagination=pagination) @user_bp.route('/management', methods=['GET', 'POST']) -- cgit