Skip to content

Commit ce4c507

Browse files
committed
Update user.html.twig
Hide group name if user is not in a group.
1 parent b26b705 commit ce4c507

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/sprinkles/admin/templates/pages/user.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<i class="fa fa-fw fa-bolt fa-lg text-yellow" title="{{translate('UNACTIVATED')}}"></i>
9595
{% endif %}
9696
</div>
97-
<h4 class="text-muted text-center">{{user.user_name}}{% if 'group' not in fields.hidden %} • {{user.group.name}}{% endif %}</h4>
97+
<h4 class="text-muted text-center">{{user.user_name}}{% if 'group' not in fields.hidden and user.group.name is not null %} • {{user.group.name}}{% endif %}</h4>
9898

9999
{% if 'email' not in fields.hidden %}
100100
<hr>

0 commit comments

Comments
 (0)