Add Icons for users breadcrumbs

This commit is contained in:
Patrick Jentsch 2023-03-14 12:20:29 +01:00
parent 8dba78c474
commit b8e63d2342
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ from .utils import (
@bp.route('')
@register_breadcrumb(bp, '.', 'Users')
@register_breadcrumb(bp, '.', '<i class="material-icons left">group</i>Users')
@login_required
def users():
return redirect(url_for('main.social_area', _anchor='users'))

View File

@ -11,7 +11,7 @@ def user_dynamic_list_constructor():
user = User.query.get_or_404(user_id)
return [
{
'text': user.username,
'text': f'<i class="material-icons left">account_circle</i>{user.username}',
'url': url_for('.user', user_id=user_id)
}
]