author | nishanth |
Tue, 02 Mar 2010 14:46:05 +0530 | |
changeset 174 | d034cd77cfa6 |
parent 170 | d69a562f969d |
child 187 | 72d57f59a561 |
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 %} |
168 | 12 |
Logged in as {{ user.username }} <br /><br /> |
13 |
{% endif %} |
|
14 |
||
15 |
{% if can_create_task %} |
|
16 |
<a href="/task/create/">Create a task</a><br /> |
|
170
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
17 |
<br /> |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
18 |
{% endif %} |
168 | 19 |
{% ifequal user.get_profile.rights "MG" %} |
20 |
<a href="/user/make/dv/">Request another user to be a Developer</a><br /> |
|
21 |
<a href="/user/make/mg/">Request another user to act as manager</a><br /> |
|
170
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
22 |
<br /> |
168 | 23 |
{% endifequal %} |
24 |
{% ifequal user.get_profile.rights "AD" %} |
|
25 |
<a href="/user/make/dv/">Request another user to be a Developer</a><br /> |
|
26 |
<a href="/user/make/mg/">Request another user to act as a Manager</a><br /> |
|
27 |
<a href="/user/make/ad">Request another user to act as an Admin</a><br /> |
|
170
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
28 |
<br /> |
168 | 29 |
{% endifequal %} |
170
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
30 |
|
168 | 31 |
|
143
796ff9e279a8
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents:
141
diff
changeset
|
32 |
{% 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
|
33 |
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
|
34 |
{% ifnotequal user.unread_notifications.count 1 %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
35 |
notifications |
97 | 36 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
37 |
notification |
168 | 38 |
{% endifnotequal %} |
39 |
<br /> |
|
97 | 40 |
{% endif %} |
168 | 41 |
|
143
796ff9e279a8
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents:
141
diff
changeset
|
42 |
{% if user.unread_requests.count %} |
168 | 43 |
You have {{ user.unread_requests.count }} <a href='/user/requests/'>unread</a> |
143
796ff9e279a8
now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents:
141
diff
changeset
|
44 |
{% ifnotequal user.unread_requests.count 1 %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
45 |
requests |
97 | 46 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
47 |
request |
168 | 48 |
{% endifnotequal %} |
170
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
49 |
<br /><br /> |
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
50 |
{% else %} |
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
51 |
{% if user.unread_notifications.count %} |
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
52 |
<br /> |
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
53 |
{% endif %} |
97 | 54 |
{% endif %} |
170
d69a562f969d
homepage for logged in users has been made to look better.
nishanth
parents:
168
diff
changeset
|
55 |
|
97 | 56 |
|
168 | 57 |
<!-- |
97 | 58 |
{% if user.task_claimed_users.count %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
59 |
{{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a> |
97 | 60 |
{% 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
|
61 |
tasks |
97 | 62 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
63 |
task |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
64 |
{% endifnotequal %}<br /> |
97 | 65 |
{% endif %} |
66 |
||
67 |
{% if user.task_assigned_users.count %} |
|
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
68 |
You are currently <a href='/user/assigned/'>working</a> on {{ user.task_assigned_users.count }} |
97 | 69 |
{% 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
|
70 |
tasks |
97 | 71 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
72 |
task |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
73 |
{% endifnotequal %}<br /> |
97 | 74 |
{% endif %} |
75 |
||
76 |
{% if user.task_mentors.count %} |
|
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
77 |
<a href="/user/mentor/">Mentoring {{ user.task_mentors.count }} |
97 | 78 |
{% ifnotequal user.task_mentors.count 1 %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
79 |
tasks |
125 | 80 |
{% else %} |
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
81 |
task |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
82 |
{% endifnotequal %}</a> |
125 | 83 |
<br /> |
84 |
{% endif %} |
|
85 |
||
168 | 86 |
--> |
87 |
||
125 | 88 |
{% if unpublished_tasks %} |
168 | 89 |
Unpublished tasks viewable by you:<br /> |
125 | 90 |
{% for a_task in unpublished_tasks %} |
91 |
<a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a> |
|
92 |
{% endfor %} |
|
168 | 93 |
<br /><br /> |
97 | 94 |
{% endif %} |
168 | 95 |
|
96 |
{% if mentored_tasks %} |
|
97 |
Tasks you are mentoring:<br /> |
|
98 |
{% for a_task in mentored_tasks %} |
|
99 |
<a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a> |
|
100 |
{% endfor %} |
|
101 |
<br /><br > |
|
141
2489392ffb56
added the functionality to request a user to be AD MG DV.
nishanth
parents:
139
diff
changeset
|
102 |
{% endif %} |
168 | 103 |
|
104 |
{% if working_tasks %} |
|
105 |
Tasks that have been assigned to you:<br /> |
|
106 |
{% for a_task in working_tasks %} |
|
107 |
<a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a> |
|
108 |
{% endfor %} |
|
109 |
<br /><br /> |
|
110 |
{% endif %} |
|
111 |
||
112 |
{% if claimed_tasks %} |
|
113 |
Tasks claimed but still not assigned to you:<br /> |
|
114 |
{% for a_task in claimed_tasks %} |
|
115 |
<a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a> |
|
116 |
{% endfor %} |
|
117 |
<br /><br /> |
|
118 |
{% endif %} |
|
119 |
||
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
120 |
{% endblock %} |