--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/templates/index.html Sun Jan 09 15:01:30 2011 +0530
@@ -0,0 +1,54 @@
+{% extends 'base.html' %}
+{% block content %}
+ {% if not user %}
+ Welcome Guest<br>
+ <a href="/accounts/register/">Register</a>
+ <a href="/accounts/login/">Login</a><br /><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 unpublished_tasks %}
+ Unpublished tasks viewable by you:<ul>
+ {% for a_task in unpublished_tasks %}
+ <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
+ {% endfor %}
+ </ul>
+ <br />
+ {% endif %}
+
+ {% if reviewered_tasks %}
+ Tasks you are reviewering:<ul>
+ {% for a_task in reviewered_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 %}