mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Add Icons for users breadcrumbs
This commit is contained in:
		@@ -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'))
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user