Skip to content
Snippets Groups Projects
Commit f54fc7a6 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Updated tab for user logged in

Made "Hi, user" a dropdown menu
Put logout under dropdown
parent b076991a
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,13 @@ ...@@ -25,8 +25,13 @@
{% else %} {% else %}
<li><a href="{{ url_for('home.dashboard') }}">Dashboard</a></li> <li><a href="{{ url_for('home.dashboard') }}">Dashboard</a></li>
{% endif %} {% endif %}
<li><a href="{{ url_for('auth.logout') }}">Logout</a></li> <li class="dropdown">
<li><a><i class="fa fa-user"></i> Hi, {{ current_user.username }}!</a></li> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-user"></i> Hi, {{ current_user.username }}<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{{ url_for('auth.logout') }}">Logout</a></li>
<ul>
</li>
{% else %} {% else %}
<li><a href="{{ url_for('home.homepage') }}">Home</a></li> <li><a href="{{ url_for('home.homepage') }}">Home</a></li>
<li><a href="{{ url_for('auth.register') }}">Register</a></li> <li><a href="{{ url_for('auth.register') }}">Register</a></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