templates/index.html
author anoop
Wed, 24 Feb 2010 20:33:45 +0530
changeset 88 0b6d251d3c30
parent 70 a14ec2f09beb
child 97 3699550991c6
permissions -rw-r--r--
merged.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     2
{% block content %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     3
    {% if is_guest %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     4
        Welcome Guest<br>
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     5
        <a href="/accounts/register/">Register</a>
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     6
        <a href="/accounts/login/">Login</a><br /><br />
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     7
        Recent Tasks:<br />
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     8
        {% for task in task_list %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     9
            <a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br />
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    10
        {% endfor %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    11
    {% else %}
70
a14ec2f09beb removed unwanted links.
nishanth
parents: 42
diff changeset
    12
        Logged in as {{ user.username }} <br />
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    13
    {% endif %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    14
    {% if can_create_task %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    15
        <a href="/task/create/">Create a task</a><br />
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    16
    {% endif %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    17
{% endblock %}