We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 646b193 commit f41574fCopy full SHA for f41574f
resources/views/partials/topbar.twig
@@ -20,8 +20,8 @@
20
<button class="btn user-action-dropdown dropdown-toggle none-border">
21
{{ name|raw }}
22
</button>
23
- {% if auth_user().file is not empty %}
24
- {{ img(auth_user().file).width(47).height(47).class('rounded-circle')|raw }}
+ {% if auth_user().getAttribute('file_id') %}
+ {{ img(auth_user().file().first()).width(47).height(47).class('rounded-circle')|raw }}
25
{% else %}
26
{{ img('theme::img/no-avatar.svg').width(47).class('rounded-circle')|raw }}
27
{% endif %}
0 commit comments