view templates/whitebox.djhtml @ 33:28a512881850

Several fixes. See detailed commit message. - Clarify dependencies in README - Display real name in userpage if available - Change styling of login/logout links in navigation bar - Cleanup whitespace
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Thu, 01 Jul 2010 20:14:16 -0500
parents 3c56be2f61fc
children bc0137b6c264
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 %}
<a href="{% url auth_logout %}" id="nav-logout">Logout</a>
<small>
  (<a href="/{{user.username}}" id="nav-username">{{user.username}}</a>)
</small>
{% else %}
<a href="{% url auth_login %}?next={{ request.path }}">Log in</a>
{% endif %}
{% endblock %}