10 {% endfor %} |
10 {% endfor %} |
11 {% else %} |
11 {% else %} |
12 Logged in as {{ user.username }} <br /> |
12 Logged in as {{ user.username }} <br /> |
13 {% endif %} |
13 {% endif %} |
14 |
14 |
15 {% if can_create_task %} |
|
16 <a href="/task/create/">Create a task</a><br /> |
|
17 {% endif %} |
|
18 |
|
19 {% if notifications.count %} |
15 {% if notifications.count %} |
20 <br> {{ notifications.count }} unread <a href='/user/notifications/'> |
16 You have {{ notifications.count }} <a href='/user/notifications/'>unread</a> |
21 {% ifnotequal notifications.count 1 %} |
17 {% ifnotequal notifications.count 1 %} |
22 notifications</a>!! |
18 notifications |
23 {% else %} |
19 {% else %} |
24 notification</a>!! |
20 notification |
25 {% endifnotequal %} |
21 {% endifnotequal %}<br /> |
26 {% endif %} |
22 {% endif %} |
27 |
23 |
28 {% if requests.count %} |
24 {% if requests.count %} |
29 <br>{{ requests.count }} unreplied <a href='/user/requests/'> |
25 You have {{ requests.count }} <a href='/user/requests/'>unreplied</a> |
30 {% ifnotequal requests.count 1 %} |
26 {% ifnotequal requests.count 1 %} |
31 requests</a>! |
27 requests |
32 {% else %} |
28 {% else %} |
33 request</a>! |
29 request |
34 {% endifnotequal %} |
30 {% endifnotequal %}<br /> |
35 {% endif %} |
31 {% endif %} |
36 |
32 |
37 {% if user.task_claimed_users.count %} |
33 {% if user.task_claimed_users.count %} |
38 <br>{{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a> |
34 {{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a> |
39 {% ifnotequal user.task_claimed_users.count 1 %} |
35 {% ifnotequal user.task_claimed_users.count 1 %} |
40 tasks! |
36 tasks |
41 {% else %} |
37 {% else %} |
42 task! |
38 task |
43 {% endifnotequal %} |
39 {% endifnotequal %}<br /> |
44 {% endif %} |
40 {% endif %} |
45 |
41 |
46 {% if user.task_assigned_users.count %} |
42 {% if user.task_assigned_users.count %} |
47 <br>You are currently <a href='/user/assigned/'>working</a> on {{ user.task_assigned_users.count }} |
43 You are currently <a href='/user/assigned/'>working</a> on {{ user.task_assigned_users.count }} |
48 {% ifnotequal user.task_assigned_users.count 1 %} |
44 {% ifnotequal user.task_assigned_users.count 1 %} |
49 tasks! |
45 tasks |
50 {% else %} |
46 {% else %} |
51 task! |
47 task |
52 {% endifnotequal %} |
48 {% endifnotequal %}<br /> |
53 {% endif %} |
49 {% endif %} |
54 |
50 |
55 {% if user.task_mentors.count %} |
51 {% if user.task_mentors.count %} |
56 <br><a href="/user/mentor/">Mentoring</a> {{ user.task_mentors.count }} |
52 <a href="/user/mentor/">Mentoring {{ user.task_mentors.count }} |
57 {% ifnotequal user.task_mentors.count 1 %} |
53 {% ifnotequal user.task_mentors.count 1 %} |
58 tasks! |
54 tasks |
59 {% else %} |
55 {% else %} |
60 task! |
56 task |
61 {% endifnotequal %} |
57 {% endifnotequal %}</a> |
62 <br /> |
58 <br /> |
63 {% endif %} |
59 {% endif %} |
64 |
60 |
65 {% if unpublished_tasks %} |
61 {% if unpublished_tasks %} |
66 <br />Unpublished tasks:<br /> |
62 <br />Unpublished tasks viewable by you:<br /> |
67 {% for a_task in unpublished_tasks %} |
63 {% for a_task in unpublished_tasks %} |
68 <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a> |
64 <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a> |
69 {% endfor %} |
65 {% endfor %} |
70 {% endif %} |
66 {% endif %} |
|
67 <br /><br /> |
|
68 {% ifnotequal user.get_profile.rights "CT" %} |
|
69 <a href="/task/create/">Create a task</a><br /> |
|
70 {% endifnotequal %} |
|
71 {% ifequal user.get_profile.rights "MG" %} |
|
72 <a href="/user/make/dv/">Request another to be a Developer</a> |
|
73 <a href="/user/make/mg/">Request another user to act as manager</a><br /> |
|
74 {% endifequal %} |
|
75 {% ifequal user.get_profile.rights "AD" %} |
|
76 <a href="/user/make/dv/">Request another to be a Developer</a><br /> |
|
77 <a href="/user/make/mg/">Request another user to act as a Manager</a><br /> |
|
78 <a href="/user/make/ad">Request another user to act as an Admin</a><br /> |
|
79 {% endifequal %} |
71 {% endblock %} |
80 {% endblock %} |