Skip to content

Commit 2953520

Browse files
authored
Merge pull request #23 from openclassify/srd-nav-pp
added profile photo
2 parents 48e4a90 + 3d4baf7 commit 2953520

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

resources/views/profile/partials/navigation.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
</div>
55
<div class="col-10 col-sm-6 col-md-3 profile-navigation border navbar-side" id="navbarSide">
66
<span class="px-3 mb-2 link-unstyled">
7-
{{ img('visiosoft.module.profile::images/interface.svg').data|raw }}
7+
{% 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 }}
89
<p>
910
<a href="{{ url_route('profile::profile') }}" class="link-unstyled mb-0">{{ auth_user().name }}</a>
1011
{{ addBlock('profile/navigation/username')|raw }}

0 commit comments

Comments
 (0)