Fix sidenav profile entries

This commit is contained in:
Patrick Jentsch 2023-11-13 12:46:48 +01:00
parent df33c7b36d
commit 660d7ebc99

View File

@ -1,29 +1,21 @@
<ul class="sidenav sidenav-fixed" id="sidenav"> <ul class="sidenav sidenav-fixed" id="sidenav">
<li> <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="background primary-color"></div>
<div class="row"> <span class="white-text name">
<div class="col s5"> {% if current_user.username|length > 32 %}
<a href="{{ url_for('users.user', user_id=current_user.id) }}"> {{ current_user.username[:29] + '...' }}
<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] + '...' }}
{% else %} {% else %}
{{ current_user.username }} {{ current_user.username }}
{% endif %} {% endif %}
</span> </span>
<span class="white-text email" style="padding-top:5px;"> <span class="white-text email">
{% if current_user.email|length > 32 %} {% if current_user.email|length > 32 %}
{{ current_user.email[:29] + '...' }} {{ current_user.email[:29] + '...' }}
{% else %} {% else %}
{{ current_user.email }} {{ current_user.email }}
{% endif %} {% endif %}
</span> </span>
</div>
</div> </div>
</div> </div>
</li> </li>