# HG changeset patch # User Thomas De Schampheleire # Date 2018-12-04 21:32:57 # Node ID 3e6f0b5815d87efd002ae4d44e70a501d9dd70a9 # Parent 5d7c1f73a5b85bd51d642c1b189d6644f180d39d templates: remove notification count from user profile button This commit is part of the removal of the UI notification feature from Kallithea, which is not deemed useful in its current form. Only email notifications are preserved. This commit removes the notification count 'badge' next to the username top-right, and the count in the expanded field when clicking that username. diff --git a/kallithea/lib/base.py b/kallithea/lib/base.py --- a/kallithea/lib/base.py +++ b/kallithea/lib/base.py @@ -59,7 +59,6 @@ from kallithea.lib.vcs.exceptions import from kallithea.model import meta from kallithea.model.db import PullRequest, Repository, Ui, User, Setting -from kallithea.model.notification import NotificationModel from kallithea.model.scm import ScmModel log = logging.getLogger(__name__) @@ -418,8 +417,6 @@ class BaseController(TGController): c.repo_name = get_repo_slug(request) # can be empty c.backends = BACKENDS.keys() - c.unread_notifications = NotificationModel() \ - .get_unread_cnt_for_user(request.authuser.user_id) self.cut_off_limit = safe_int(config.get('cut_off_limit')) diff --git a/kallithea/templates/base/base.html b/kallithea/templates/base/base.html --- a/kallithea/templates/base/base.html +++ b/kallithea/templates/base/base.html @@ -354,19 +354,10 @@ ## USER MENU