HTMLify

nav-bar.html
Views: 123 | Author: abh
<div class="links">
	<a href="/">Home</a>
	{% if not session.get("user") %}
    <a href="/login">Log in</a>
    <a href="/registration">Register</a>
    {% else %}
    <a href="/action/logout">Log out</a>
    <a href="/notifications" >Notifications
    {% if session["user"]["notifications"] > 0 %}
    <!--<sup style="color:white;background-color:#ff5511;border-radius:50%;">{{ session["user"]["notifications"] }}</sup>-->
    <sup style="color:white; background-color:#ff5511; border-radius:50%; padding: 2px 5px;">
    {{ session["user"]["notifications"] }}
    </sup>
    {% endif %}
    </a>
    {% endif %}
    <a href="/dashboard">Dashboard</a>
</div>

Comments