author | nishanth |
Sun, 28 Feb 2010 18:31:10 +0530 | |
changeset 150 | 604808d27483 |
parent 145 | 0c97a02b9bdb |
child 152 | a65e1ef725dd |
permissions | -rw-r--r-- |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
1 |
{% extends 'base.html' %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
2 |
{% block content %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
3 |
{% if is_guest %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
4 |
Welcome Guest<br> |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
5 |
<a href="/accounts/register/">Register</a> |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
6 |
<a href="/accounts/login/">Login</a><br /><br /> |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
7 |
Recent Tasks:<br /> |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
8 |
{% for task in task_list %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
9 |
<a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br /> |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
10 |
{% endfor %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
11 |
{% else %} |
70 | 12 |
Logged in as {{ user.username }} <br /> |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
13 |
{% endif %} |
97 | 14 |
|
143
796ff9e279a8
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents:
141
diff
changeset
|
15 |
{% if user.unread_notifications.count %} |
796ff9e279a8
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents:
141
diff
changeset
|
16 |
You have {{ user.unread_notifications.count }} <a href='/user/notifications/'>unread</a> |
796ff9e279a8
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents:
141
diff
changeset
|
17 |
{% ifnotequal user.unread_notifications.count 1 %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
18 |
notifications |
97 | 19 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
20 |
notification |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
21 |
{% endifnotequal %}<br /> |
97 | 22 |
{% endif %} |
23 |
||
143
796ff9e279a8
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents:
141
diff
changeset
|
24 |
{% if user.unread_requests.count %} |
796ff9e279a8
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents:
141
diff
changeset
|
25 |
You have {{ user.unread_requests.count }} <a href='/user/requests/'>unreplied</a> |
796ff9e279a8
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents:
141
diff
changeset
|
26 |
{% ifnotequal user.unread_requests.count 1 %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
27 |
requests |
97 | 28 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
29 |
request |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
30 |
{% endifnotequal %}<br /> |
97 | 31 |
{% endif %} |
32 |
||
33 |
{% if user.task_claimed_users.count %} |
|
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
34 |
{{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a> |
97 | 35 |
{% ifnotequal user.task_claimed_users.count 1 %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
36 |
tasks |
97 | 37 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
38 |
task |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
39 |
{% endifnotequal %}<br /> |
97 | 40 |
{% endif %} |
41 |
||
42 |
{% if user.task_assigned_users.count %} |
|
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
43 |
You are currently <a href='/user/assigned/'>working</a> on {{ user.task_assigned_users.count }} |
97 | 44 |
{% ifnotequal user.task_assigned_users.count 1 %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
45 |
tasks |
97 | 46 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
47 |
task |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
48 |
{% endifnotequal %}<br /> |
97 | 49 |
{% endif %} |
50 |
||
51 |
{% if user.task_mentors.count %} |
|
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
52 |
<a href="/user/mentor/">Mentoring {{ user.task_mentors.count }} |
97 | 53 |
{% ifnotequal user.task_mentors.count 1 %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
54 |
tasks |
125 | 55 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
56 |
task |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
57 |
{% endifnotequal %}</a> |
125 | 58 |
<br /> |
59 |
{% endif %} |
|
60 |
||
61 |
{% if unpublished_tasks %} |
|
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
62 |
<br />Unpublished tasks viewable by you:<br /> |
125 | 63 |
{% for a_task in unpublished_tasks %} |
64 |
<a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a> |
|
65 |
{% endfor %} |
|
97 | 66 |
{% endif %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
67 |
<br /><br /> |
141
2489392ffb56
added the functionality to request a user to be AD MG DV.
nishanth
parents:
139
diff
changeset
|
68 |
{% if can_create_task %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
69 |
<a href="/task/create/">Create a task</a><br /> |
141
2489392ffb56
added the functionality to request a user to be AD MG DV.
nishanth
parents:
139
diff
changeset
|
70 |
{% endif %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
71 |
{% ifequal user.get_profile.rights "MG" %} |
145
0c97a02b9bdb
now accepting to be a MG deleted pending DV and MG reqs.
nishanth
parents:
143
diff
changeset
|
72 |
<a href="/user/make/dv/">Request another user to be a Developer</a><br /> |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
73 |
<a href="/user/make/mg/">Request another user to act as manager</a><br /> |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
74 |
{% endifequal %} |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
75 |
{% ifequal user.get_profile.rights "AD" %} |
145
0c97a02b9bdb
now accepting to be a MG deleted pending DV and MG reqs.
nishanth
parents:
143
diff
changeset
|
76 |
<a href="/user/make/dv/">Request another user to be a Developer</a><br /><br /> |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
77 |
<a href="/user/make/mg/">Request another user to act as a Manager</a><br /> |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
78 |
<a href="/user/make/ad">Request another user to act as an Admin</a><br /> |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
79 |
{% endifequal %} |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
80 |
{% endblock %} |