aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-09 10:01:55 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-04-09 10:01:55 +0200
commit62fbbdcacdc09c18a179d8a36909f2d4fc6dcb39 (patch)
tree75a9329da9ff09626ecd9a895e47e81dcebe4783 /src/web/views
parentUsers created by the admin are active by default. (diff)
downloadnewspipe-62fbbdcacdc09c18a179d8a36909f2d4fc6dcb39.tar.gz
newspipe-62fbbdcacdc09c18a179d8a36909f2d4fc6dcb39.tar.bz2
newspipe-62fbbdcacdc09c18a179d8a36909f2d4fc6dcb39.zip
Add a link to the list of categories.
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/user.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/web/views/user.py b/src/web/views/user.py
index f24da37a..1ce16ade 100644
--- a/src/web/views/user.py
+++ b/src/web/views/user.py
@@ -8,7 +8,8 @@ from flask.ext.login import login_required, current_user
import conf
from web import utils, notifications
from web.lib.user_utils import confirm_token
-from web.controllers import (UserController, FeedController, ArticleController)
+from web.controllers import (UserController, FeedController, ArticleController,
+ CategoryController)
from web.forms import ProfileForm, RecoverPasswordForm
@@ -58,9 +59,11 @@ def management():
art_contr = ArticleController(current_user.id)
nb_articles = art_contr.read().count()
nb_unread_articles = art_contr.read(readed=False).count()
+ nb_categories = CategoryController(current_user.id).read().count()
return render_template('management.html', user=current_user,
nb_feeds=nb_feeds, nb_articles=nb_articles,
- nb_unread_articles=nb_unread_articles)
+ nb_unread_articles=nb_unread_articles,
+ nb_categories=nb_categories)
@user_bp.route('/profile', methods=['GET', 'POST'])
bgstack15