author | anoop |
Mon, 08 Mar 2010 13:37:26 +0530 | |
changeset 207 | 2de52334fe6c |
parent 189 | 8f5fb15ffd9b |
child 218 | 59107ce0a618 |
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 %} |
188
e4e73a4dd720
removed linebreak before billeted list in homepage.
nishanth
parents:
187
diff
changeset
|
89 |
Unpublished tasks viewable by you:<ul> |
125 | 90 |
{% for a_task in unpublished_tasks %} |
187
72d57f59a561
now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents:
170
diff
changeset
|
91 |
<li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li> |
125 | 92 |
{% endfor %} |
187
72d57f59a561
now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents:
170
diff
changeset
|
93 |
</ul> |
189 | 94 |
<br /> |
97 | 95 |
{% endif %} |
168 | 96 |
|
97 |
{% if mentored_tasks %} |
|
188
e4e73a4dd720
removed linebreak before billeted list in homepage.
nishanth
parents:
187
diff
changeset
|
98 |
Tasks you are mentoring:<ul> |
168 | 99 |
{% for a_task in mentored_tasks %} |
188
e4e73a4dd720
removed linebreak before billeted list in homepage.
nishanth
parents:
187
diff
changeset
|
100 |
<li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li> |
168 | 101 |
{% endfor %} |
187
72d57f59a561
now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents:
170
diff
changeset
|
102 |
</ul> |
189 | 103 |
<br /> |
141
2489392ffb56
added the functionality to request a user to be AD MG DV.
nishanth
parents:
139
diff
changeset
|
104 |
{% endif %} |
168 | 105 |
|
106 |
{% if working_tasks %} |
|
188
e4e73a4dd720
removed linebreak before billeted list in homepage.
nishanth
parents:
187
diff
changeset
|
107 |
Tasks that have been assigned to you:<ul> |
168 | 108 |
{% for a_task in working_tasks %} |
187
72d57f59a561
now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents:
170
diff
changeset
|
109 |
<li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li> |
168 | 110 |
{% endfor %} |
187
72d57f59a561
now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents:
170
diff
changeset
|
111 |
</ul> |
189 | 112 |
<br /> |
168 | 113 |
{% endif %} |
114 |
||
115 |
{% if claimed_tasks %} |
|
188
e4e73a4dd720
removed linebreak before billeted list in homepage.
nishanth
parents:
187
diff
changeset
|
116 |
Tasks claimed but still not assigned to you:<ul> |
168 | 117 |
{% for a_task in claimed_tasks %} |
187
72d57f59a561
now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents:
170
diff
changeset
|
118 |
<li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li> |
168 | 119 |
{% endfor %} |
187
72d57f59a561
now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents:
170
diff
changeset
|
120 |
</ul> |
189 | 121 |
<br /> |
168 | 122 |
{% endif %} |
123 |
||
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
124 |
{% endblock %} |