Skip to content

Commit d726f7f

Browse files
committed
Style(UX): Add username and icon to replace the logout text
1 parent 2504f3c commit d726f7f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/static/images/logout.png

953 Bytes
Loading

app/templates/base.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@
3636
{% if current_user.is_authenticated %}
3737
<li><a href="{{ url_for('update') }}">Update</a></li>
3838
<li><a href=" {{ url_for('help') }} ">Need Help?</a></li>
39-
<li><a href="{{ url_for('logout') }}">Logout</a></li>
39+
<li>
40+
<a href="{{ url_for('logout') }}">
41+
{{ current_user.username }}
42+
<img class="img-fluid" style="height: 20px; width: 20px;" src=" {{ url_for('static', filename='images/logout.png') }} " alt="Logout">
43+
</a>
44+
</li>
4045
{% else %}
4146
<li><a href=" {{ url_for('login') }} ">Login</a></li>
4247
{% endif %}

0 commit comments

Comments
 (0)