pytask/templates/index.html
author Nishanth Amuluru <nishanth@fossee.in>
Sun, 09 Jan 2011 15:30:06 +0530
changeset 127 32457bce3437
parent 126 2763afa1c2a2
child 129 13e171f09941
permissions -rw-r--r--
prettified a few pages

{% extends 'base.html' %}
{% block content %}
    {% if not user %}
    Checkout the tasks on the left panel for tasks that have been recently created.<br />
    Checkout the textbooks for textbooks that have been added to the project.<br />

    {% else %}
        Logged in as {{ user.username }} <br /><br />
    {% endif %}

    {% if can_create_task %}
    	<a href="/task/textbook/create/">Add a new textbook</a><br />
        <a href="/task/create/">Create a task</a><br />
    <br />
    {% endif %}
    
    {% if reviewing_tasks %}
    Tasks you are reviewering:<ul>
        {% for a_task in reviewing_tasks %}
            <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
        {% endfor %}
        </ul>
    <br />
    {% endif %}

    {% if selected_tasks %}
    Tasks that have been assigned to you:<ul>
        {% for a_task in selected_tasks %}
            <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
        {% endfor %}
        </ul>
    <br />
    {% endif %}

    {% if claimed_tasks %}
    Tasks claimed but still not assigned to you:<ul>
        {% for a_task in claimed_tasks %}
            <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
        {% endfor %}
        </ul>
    <br />
    {% endif %}

{% endblock %}