author | nishanth |
Sun, 28 Feb 2010 04:17:15 +0530 | |
changeset 139 | 56203661002a |
parent 125 | d3cfceb8e120 |
child 141 | 2489392ffb56 |
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 |
|
15 |
{% if notifications.count %} |
|
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
16 |
You have {{ notifications.count }} <a href='/user/notifications/'>unread</a> |
97 | 17 |
{% ifnotequal 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 |
||
24 |
{% if requests.count %} |
|
139
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
25 |
You have {{ requests.count }} <a href='/user/requests/'>unreplied</a> |
97 | 26 |
{% ifnotequal 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 /> |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
68 |
{% ifnotequal user.get_profile.rights "CT" %} |
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 /> |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
70 |
{% endifnotequal %} |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
71 |
{% ifequal user.get_profile.rights "MG" %} |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
72 |
<a href="/user/make/dv/">Request another to be a Developer</a> |
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" %} |
56203661002a
provided links to make a raise the privileges of a user.
nishanth
parents:
125
diff
changeset
|
76 |
<a href="/user/make/dv/">Request another to be a Developer</a><br /> |
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 %} |