From b8e63d2342d104a7ac5177297f42eca6f60d55b1 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 14 Mar 2023 12:20:29 +0100 Subject: [PATCH] Add Icons for users breadcrumbs --- app/users/routes.py | 2 +- app/users/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/users/routes.py b/app/users/routes.py index 64dca884..a69fa503 100644 --- a/app/users/routes.py +++ b/app/users/routes.py @@ -26,7 +26,7 @@ from .utils import ( @bp.route('') -@register_breadcrumb(bp, '.', 'Users') +@register_breadcrumb(bp, '.', 'groupUsers') @login_required def users(): return redirect(url_for('main.social_area', _anchor='users')) diff --git a/app/users/utils.py b/app/users/utils.py index e352fe5c..1c4ab7a8 100644 --- a/app/users/utils.py +++ b/app/users/utils.py @@ -11,7 +11,7 @@ def user_dynamic_list_constructor(): user = User.query.get_or_404(user_id) return [ { - 'text': user.username, + 'text': f'account_circle{user.username}', 'url': url_for('.user', user_id=user_id) } ]