umap/youmap/templates/youmap/navigation.html
2012-12-16 15:10:00 +01:00

25 lines
792 B
HTML

<nav class="top-bar contain-to-grid">
<ul>
<li class="name"><h1><a href="/">u{Map} <em>alpha</em></a></h1></li>
<li class="toggle-topbar"><a href="#"></a></li>
</ul>
<section>
<ul class="left">
{% if user.is_authenticated %}
<li><a href="{% url user_maps user.username %}">My maps ({{ user }})</a></li>
<li><a href="{% url logout %}" class="logout_button">Log out</a></li>
{% else %}
<li><a href="{% url login %}" class="login_button">Log in</a></li>
{% endif %}
</ul>
<ul class="right">
<li class="search">
<form action="{% url search %}" method="GET">
<input name="q" type="search" placeholder="Search maps" value="{{ q|default:"" }}" />
</form>
</li>
</ul>
</section>
</nav>