pytask/templates/index.html
author Nishanth Amuluru <nishanth@fossee.in>
Wed, 12 Jan 2011 00:22:27 +0530
changeset 149 32dd15eaf9d0
parent 129 13e171f09941
permissions -rw-r--r--
fixed a bug where guest users were not able to view the page correctly
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 %}
126
2763afa1c2a2 home_page is now in some shape
Nishanth Amuluru <nishanth@fossee.in>
parents: 125
diff changeset
     4
    Checkout the tasks on the left panel for tasks that have been recently created.<br />
2763afa1c2a2 home_page is now in some shape
Nishanth Amuluru <nishanth@fossee.in>
parents: 125
diff changeset
     5
    Checkout the textbooks for textbooks that have been added to the project.<br />
2763afa1c2a2 home_page is now in some shape
Nishanth Amuluru <nishanth@fossee.in>
parents: 125
diff changeset
     6
125
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
    
129
13e171f09941 added unpublished tasks to home_page
Nishanth Amuluru <nishanth@fossee.in>
parents: 127
diff changeset
    17
    {% if unpublished_tasks %}
13e171f09941 added unpublished tasks to home_page
Nishanth Amuluru <nishanth@fossee.in>
parents: 127
diff changeset
    18
    Tasks created by you that need approval:<ul>
13e171f09941 added unpublished tasks to home_page
Nishanth Amuluru <nishanth@fossee.in>
parents: 127
diff changeset
    19
        {% for a_task in unpublished_tasks %}
13e171f09941 added unpublished tasks to home_page
Nishanth Amuluru <nishanth@fossee.in>
parents: 127
diff changeset
    20
            <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
13e171f09941 added unpublished tasks to home_page
Nishanth Amuluru <nishanth@fossee.in>
parents: 127
diff changeset
    21
        {% endfor %}
13e171f09941 added unpublished tasks to home_page
Nishanth Amuluru <nishanth@fossee.in>
parents: 127
diff changeset
    22
        </ul>
13e171f09941 added unpublished tasks to home_page
Nishanth Amuluru <nishanth@fossee.in>
parents: 127
diff changeset
    23
    <br />
13e171f09941 added unpublished tasks to home_page
Nishanth Amuluru <nishanth@fossee.in>
parents: 127
diff changeset
    24
    {% endif %}
13e171f09941 added unpublished tasks to home_page
Nishanth Amuluru <nishanth@fossee.in>
parents: 127
diff changeset
    25
127
32457bce3437 prettified a few pages
Nishanth Amuluru <nishanth@fossee.in>
parents: 126
diff changeset
    26
    {% if reviewing_tasks %}
125
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    27
    Tasks you are reviewering:<ul>
127
32457bce3437 prettified a few pages
Nishanth Amuluru <nishanth@fossee.in>
parents: 126
diff changeset
    28
        {% for a_task in reviewing_tasks %}
125
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    29
            <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
    30
        {% endfor %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    31
        </ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    32
    <br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    33
    {% endif %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    34
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    35
    {% if selected_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    36
    Tasks that have been assigned to you:<ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    37
        {% for a_task in selected_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    38
            <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
    39
        {% endfor %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    40
        </ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    41
    <br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    42
    {% endif %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    43
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    44
    {% if claimed_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    45
    Tasks claimed but still not assigned to you:<ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    46
        {% for a_task in claimed_tasks %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    47
            <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
    48
        {% endfor %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    49
        </ul>
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    50
    <br />
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    51
    {% endif %}
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    52
9b0812962133 created the home page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    53
{% endblock %}