Mercurial > agora-palash
view templates/whitebox.djhtml @ 32:3c56be2f61fc
Move login/logout buttons to navigation bar, remove cargo-cult CSS
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Thu, 01 Jul 2010 15:00:23 -0500 |
parents | f14aaa98306a |
children | 28a512881850 |
line wrap: on
line source
{% extends "base.djhtml" %} {% block content %} <div id="info"> <h3> {% block boxtitle %}{% endblock %} </h3> <div class="whitebox"> {% block boxcontents %}{% endblock %} </div> </div> {% endblock %} {% block session %} {% if user.is_authenticated %} <form action="{% url auth_logout %}" method="post" id="nav-right"> You are logged in as <a href="/{{user.username}}">{{user.username}}</a>. {% csrf_token %} <input type="submit" value="logout" id="logout-button"/> </form> {% else %} <a href="{% url auth_login %}?next={{ request.path }}">Log in</a> {% endif %} {% endblock %}