blob: 435517c8bad5143ae8e3c38b9e7dbcd0821fa3e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
{% extends 'base.html' %}
{% block content %}
{% if is_guest %}
Welcome Guest<br>
<a href="/accounts/register/">Register</a>
<a href="/accounts/login/">Login</a><br /><br />
Recent Tasks:<br />
{% for task in task_list %}
<a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br />
{% endfor %}
{% else %}
Logged in as {{ user.username }} <br />
{% endif %}
{% if can_create_task %}
<a href="/task/create/">Create a task</a><br />
{% endif %}
{% if notifications.count %}
<br> {{ notifications.count }} unread <a href='/user/notifications/'>
{% ifnotequal notifications.count 1 %}
notifications</a>!!
{% else %}
notification</a>!!
{% endifnotequal %}
{% endif %}
{% if requests.count %}
<br>{{ requests.count }} unreplied <a href='/user/requests/'>
{% ifnotequal requests.count 1 %}
requests</a>!
{% else %}
request</a>!
{% endifnotequal %}
{% endif %}
{% if user.task_claimed_users.count %}
<br>{{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a>
{% ifnotequal user.task_claimed_users.count 1 %}
tasks!
{% else %}
task!
{% endifnotequal %}
{% endif %}
{% if user.task_assigned_users.count %}
<br>You are currently <a href='/user/assigned/'>working</a> on {{ user.task_assigned_users.count }}
{% ifnotequal user.task_assigned_users.count 1 %}
tasks!
{% else %}
task!
{% endifnotequal %}
{% endif %}
{% if user.task_mentors.count %}
<br><a href="/user/mentor/">Mentoring</a> {{ user.task_mentors.count }}
{% ifnotequal user.task_mentors.count 1 %}
tasks!
{% else %}
task!
{% endifnotequal %}
<br />
{% endif %}
{% if unpublished_tasks %}
<br />Unpublished tasks:<br />
{% for a_task in unpublished_tasks %}
<a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>
{% endfor %}
{% endif %}
{% endblock %}
|