Skip to content
Snippets Groups Projects
Commit 660d7ebc authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix sidenav profile entries

parent df33c7b3
No related branches found
No related tags found
No related merge requests found
<ul class="sidenav sidenav-fixed" id="sidenav">
<li>
<div class="user-view" style="padding-top: 1px; padding-left: 20px !important; padding-right: 20px !important; height: 112px;">
<div class="user-view">
<div class="background primary-color"></div>
<div class="row">
<div class="col s5">
<a href="{{ url_for('users.user', user_id=current_user.id) }}">
<img src="{{ url_for('users.user_avatar', user_id=current_user.id) }}" alt="user-image" class="circle responsive-img" style="height:80%; margin-top: 22px;">
</a>
</div>
<div class="col s5" style="word-wrap: break-word; margin-left:-10px;">
<span class="white-text name">
{% if current_user.username|length > 18 %}
{{ current_user.username[:15] + '...' }}
<span class="white-text name">
{% if current_user.username|length > 32 %}
{{ current_user.username[:29] + '...' }}
{% else %}
{{ current_user.username }}
{{ current_user.username }}
{% endif %}
</span>
<span class="white-text email" style="padding-top:5px;">
</span>
<span class="white-text email">
{% if current_user.email|length > 32 %}
{{ current_user.email[:29] + '...' }}
{% else %}
{{ current_user.email }}
{% endif %}
</span>
</div>
</span>
</div>
</div>
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment