pytask/templates/index.html
author Nishanth Amuluru <nishanth@fossee.in>
Sun, 09 Jan 2011 15:01:30 +0530
changeset 125 9b0812962133
child 126 2763afa1c2a2
permissions -rw-r--r--
created the home page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
125
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     1
{% extends 'base.html' %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     2
{% block content %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     3
    {% if not user %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     4
        Welcome Guest<br>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     5
        <a href="/accounts/register/">Register</a>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     6
        <a href="/accounts/login/">Login</a><br /><br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     7
    {% else %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     8
        Logged in as {{ user.username }} <br /><br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     9
    {% endif %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    10
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    11
    {% if can_create_task %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    12
    	<a href="/task/textbook/create/">Add a new textbook</a><br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    13
        <a href="/task/create/">Create a task</a><br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    14
    <br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    15
    {% endif %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    16
    
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    17
    
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    18
    {% if unpublished_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    19
    Unpublished tasks viewable by you:<ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    20
        {% for a_task in unpublished_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    21
            <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    22
        {% endfor %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    23
        </ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    24
    <br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    25
    {% endif %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    26
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    27
    {% if reviewered_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    28
    Tasks you are reviewering:<ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    29
        {% for a_task in reviewered_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    30
            <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    31
        {% endfor %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    32
        </ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    33
    <br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    34
    {% endif %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    35
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    36
    {% if selected_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    37
    Tasks that have been assigned to you:<ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    38
        {% for a_task in selected_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    39
            <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    40
        {% endfor %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    41
        </ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    42
    <br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    43
    {% endif %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    44
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    45
    {% if claimed_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    46
    Tasks claimed but still not assigned to you:<ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    47
        {% for a_task in claimed_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    48
            <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    49
        {% endfor %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    50
        </ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    51
    <br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    52
    {% endif %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    53
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    54
{% endblock %}