view templates/controls.djhtml @ 24:2e7226e90157

Many fixes. See detailed description. - Style errors - Writer proper 404 and 500 templates - Make login page redirect back to page being viewed (still buggy?) - Provide a brief blurb about Agora - Use tables for registration and login forms (need to be styled) - Fix typos, grammatical errors. - Don't use .djhtml extension for some templates
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Mon, 28 Jun 2010 03:00:01 -0500
parents d9658d30b814
children
line wrap: on
line source

{% extends "base.djhtml" %}

{% block content-related %}
<div id="info">
  <h3>
    Controls
  </h3>
  <div class="whitebox">
    {% if user.is_authenticated %}
    <p>
      You are logged in
      as <a href="/{{user.username}}">{{user.username}}</a>.
    </p>
    <p>
      (<a href="{% url auth_logout %}">logout</a>)
    </p>
    {% else %}
    <p>
      <a href="{% url auth_login%}?next={{ request.path }}">Log in</a>
    </p>
    {% endif %}
    <form method="get" action="." >
      <br/>
      <input id="search" type="text" name="search" maxlength="200" size="10"/>
      <input type="submit" value="Search" />
    </form>
    
  </div>
</div>
{% endblock %}