pytask/templates/index.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 01 Feb 2011 19:38:41 +0530
changeset 550 a606a40584f7
parent 522 9ef818f841d5
permissions -rw-r--r--
Base views should take keyword arguments and should use them for URLs.

{% 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="{% url create_textbook %}">Add a new textbook</a><br />-->
<!--        <a href="{% url create_task %}">Create a task</a><br />-->
<!--    <br />-->
<!--    {% endif %}-->
    
    {% if unpublished_tasks %}
    Tasks created by you that need approval:<ul>
        {% for a_task in unpublished_tasks %}
            <li><a href="{% url view_task a_task.id %}">{{a_task.title}}</a></li>
        {% endfor %}
        </ul>
    <br />
    {% endif %}

    {% if reviewing_tasks %}
    Tasks you are reviewering:<ul>
        {% for a_task in reviewing_tasks %}
            <li><a href="{% url view_task a_task.id %}">{{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="{% url view_task a_task.id %}">{{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="{% url view_task a_task.id %}">{{a_task.title}}</a></li>
        {% endfor %}
        </ul>
    <br />
    {% endif %}

{% endblock %}