Skip to content

Commit 646b193

Browse files
authored
Update topbar.twig
1 parent 0ffc129 commit 646b193

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

resources/views/partials/topbar.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div class="container-fluid mx-0 px-0">
22
<div class="row mx-0 px-0">
33
<div class="col-xs-24 mx-0 px-0">
4-
{% set name = user().first_name ~' '~ user().last_name %}
5-
{% if (user().first_name and user().last_name) %}
6-
{% set name = user().username %}
4+
{% set name = auth_user().name() %}
5+
{% if not name %}
6+
{% set name = auth_user().username %}
77
{% endif %}
88
<div class="top-bar">
99
<div class="topbar-useraction">
@@ -20,8 +20,8 @@
2020
<button class="btn user-action-dropdown dropdown-toggle none-border">
2121
{{ name|raw }}
2222
</button>
23-
{% if user().file is not empty %}
24-
{{ img(user().file).width(47).height(47).class('rounded-circle')|raw }}
23+
{% if auth_user().file is not empty %}
24+
{{ img(auth_user().file).width(47).height(47).class('rounded-circle')|raw }}
2525
{% else %}
2626
{{ img('theme::img/no-avatar.svg').width(47).class('rounded-circle')|raw }}
2727
{% endif %}

0 commit comments

Comments
 (0)