templates/index.html
author nishanth
Wed, 24 Feb 2010 15:10:03 +0530
changeset 70 a14ec2f09beb
parent 42 9b5b8c997598
child 97 3699550991c6
permissions -rw-r--r--
removed unwanted links.

{% extends 'base.html' %}
{% block content %}
    {% if is_guest %}
        Welcome Guest<br>
        <a href="/accounts/register/">Register</a>
        <a href="/accounts/login/">Login</a><br /><br />
        Recent Tasks:<br />
        {% for task in task_list %}
            <a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br />
        {% endfor %}
    {% else %}
        Logged in as {{ user.username }} <br />
    {% endif %}
    {% if can_create_task %}
        <a href="/task/create/">Create a task</a><br />
    {% endif %}
{% endblock %}