125
|
1 |
{% extends 'base.html' %}
|
|
2 |
{% block content %}
|
|
3 |
{% if not user %}
|
|
4 |
Welcome Guest<br>
|
|
5 |
<a href="/accounts/register/">Register</a>
|
|
6 |
<a href="/accounts/login/">Login</a><br /><br />
|
|
7 |
{% else %}
|
|
8 |
Logged in as {{ user.username }} <br /><br />
|
|
9 |
{% endif %}
|
|
10 |
|
|
11 |
{% if can_create_task %}
|
|
12 |
<a href="/task/textbook/create/">Add a new textbook</a><br />
|
|
13 |
<a href="/task/create/">Create a task</a><br />
|
|
14 |
<br />
|
|
15 |
{% endif %}
|
|
16 |
|
|
17 |
|
|
18 |
{% if unpublished_tasks %}
|
|
19 |
Unpublished tasks viewable by you:<ul>
|
|
20 |
{% for a_task in unpublished_tasks %}
|
|
21 |
<li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
|
|
22 |
{% endfor %}
|
|
23 |
</ul>
|
|
24 |
<br />
|
|
25 |
{% endif %}
|
|
26 |
|
|
27 |
{% if reviewered_tasks %}
|
|
28 |
Tasks you are reviewering:<ul>
|
|
29 |
{% for a_task in reviewered_tasks %}
|
|
30 |
<li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
|
|
31 |
{% endfor %}
|
|
32 |
</ul>
|
|
33 |
<br />
|
|
34 |
{% endif %}
|
|
35 |
|
|
36 |
{% if selected_tasks %}
|
|
37 |
Tasks that have been assigned to you:<ul>
|
|
38 |
{% for a_task in selected_tasks %}
|
|
39 |
<li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
|
|
40 |
{% endfor %}
|
|
41 |
</ul>
|
|
42 |
<br />
|
|
43 |
{% endif %}
|
|
44 |
|
|
45 |
{% if claimed_tasks %}
|
|
46 |
Tasks claimed but still not assigned to you:<ul>
|
|
47 |
{% for a_task in claimed_tasks %}
|
|
48 |
<li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
|
|
49 |
{% endfor %}
|
|
50 |
</ul>
|
|
51 |
<br />
|
|
52 |
{% endif %}
|
|
53 |
|
|
54 |
{% endblock %}
|