We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48e4a90 + 3d4baf7 commit 2953520Copy full SHA for 2953520
1 file changed
resources/views/profile/partials/navigation.twig
@@ -4,7 +4,8 @@
4
</div>
5
<div class="col-10 col-sm-6 col-md-3 profile-navigation border navbar-side" id="navbarSide">
6
<span class="px-3 mb-2 link-unstyled">
7
- {{ img('visiosoft.module.profile::images/interface.svg').data|raw }}
+ {% set profilePhoto = auth_user().file_id ? file(auth_user().file_id).make.url : img('visiosoft.module.profile::images/interface.svg').url %}
8
+ {{ img(profilePhoto).class('overflow-hidden rounded-circle')|raw }}
9
<p>
10
<a href="{{ url_route('profile::profile') }}" class="link-unstyled mb-0">{{ auth_user().name }}</a>
11
{{ addBlock('profile/navigation/username')|raw }}
0 commit comments