pytask/templates/index.html
author nishanth
Sat, 30 Jan 2010 13:03:09 +0530
changeset 11 d28fcc644fbb
parent 5 aea7e764c033
permissions -rw-r--r--
implemented create task view which needed task.py in events. added a method show_msg to views/user.py and used it in logoff view.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     2
{% block content %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     3
    {% if is_guest %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     4
        Welcome Guest<br>
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     5
        <a href="/accounts/register/">Register</a>
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     6
        <a href="/accounts/login/">Login</a><br /><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     7
        Recent Tasks:<br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     8
        {% for task in task_list %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
     9
            <a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    10
        {% endfor %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    11
    {% else %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    12
        Welcome {{ user.username }} <br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    13
        <a href="/accounts/logout/">logout</a><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    14
        <br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    15
        <a href="/task/browse/">Tasks</a><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    16
        <a href="/user/browse/">Users</a><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    17
        <a href="/user/view/uid={{user.id}}">My Profile</a><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    18
    {% endif %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    19
    {% if can_create_task %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    20
        <a href="/task/create/">Create a task</a><br />
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    21
    {% endif %}
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents:
diff changeset
    22
{% endblock %}