new: usr: Add opportunity to use profile picture. #4
This commit is contained in:
@@ -18,7 +18,13 @@
|
||||
<div class="hero-auth">
|
||||
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
||||
<a href="{{ path('MineSeekerBundle_profile') }}" class="hero-auth-btn hero-auth-btn--profile">
|
||||
<i class="fa fa-user-circle"></i>
|
||||
{% if app.user.avatarPath %}
|
||||
<img src="{{ app.user.avatarPath|imagine_filter('avatar_thumb') }}"
|
||||
alt="{{ app.user.username }}"
|
||||
class="hero-auth-avatar">
|
||||
{% else %}
|
||||
<span class="hero-auth-avatar hero-auth-avatar--initials">{{ app.user.username|slice(0, 2)|upper }}</span>
|
||||
{% endif %}
|
||||
{{ app.user.username }}
|
||||
</a>
|
||||
<a href="{{ path('MineSeekerBundle_profile_security') }}" class="hero-auth-btn hero-auth-btn--security">
|
||||
|
||||
Reference in New Issue
Block a user