Skip to content

Commit

Permalink
Merge pull request #23 from openclassify/srd-nav-pp
Browse files Browse the repository at this point in the history
added profile photo
  • Loading branch information
erhanask authored Oct 5, 2023
2 parents 48e4a90 + 3d4baf7 commit 2953520
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/views/profile/partials/navigation.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
</div>
<div class="col-10 col-sm-6 col-md-3 profile-navigation border navbar-side" id="navbarSide">
<span class="px-3 mb-2 link-unstyled">
{{ 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 %}
{{ img(profilePhoto).class('overflow-hidden rounded-circle')|raw }}
<p>
<a href="{{ url_route('profile::profile') }}" class="link-unstyled mb-0">{{ auth_user().name }}</a>
{{ addBlock('profile/navigation/username')|raw }}
Expand Down

0 comments on commit 2953520

Please sign in to comment.