File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 24
24
< li class ="nav-item dropdown ">
25
25
< a class ="nav-link dropdown-toggle " href ="# " id ="navbarDropdown " role ="button " data-bs-toggle ="dropdown " aria-expanded ="false ">
26
26
< button class ="profile-button btn p-0 border-0 bg-transparent ">
27
- {{ render_silhouette() }}
27
+ {% if user.avatar_data %}
28
+ < img src ="{{ url_for('get_avatar') }} " alt ="User Avatar " class ="d-inline-block align-top " width ="30 " height ="30 " style ="border-radius: 50%; ">
29
+ {% else %}
30
+ {{ render_silhouette() }}
31
+ {% endif %}
28
32
</ button >
29
33
</ a >
30
34
< ul class ="dropdown-menu dropdown-menu-end " aria-labelledby ="navbarDropdown ">
Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ <h1 class="mb-4">{{ organization.name }}</h1>
63
63
{% for user in role.users %}
64
64
< tr >
65
65
< td class ="text-center " style ="width: 50px; ">
66
- {{ render_silhouette(width=40, height=40) }}
66
+ {% if user.avatar_data %}
67
+ < img src ="{{ url_for('get_avatar') }} " alt ="User Avatar " class ="d-inline-block align-top " width ="40 " height ="40 " style ="border-radius: 50%; ">
68
+ {% else %}
69
+ {{ render_silhouette(width=40, height=40) }}
70
+ {% endif %}
67
71
</ td >
68
72
< td > {{ user.name }}</ td >
69
73
< td > {{ user.email }}</ td >
You can’t perform that action at this time.
0 commit comments