author | nishanth |
Sat, 27 Feb 2010 01:27:35 +0530 | |
changeset 127 | 71888e23f323 |
parent 125 | d3cfceb8e120 |
child 139 | 56203661002a |
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 |
|
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
15 |
{% if can_create_task %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
16 |
<a href="/task/create/">Create a task</a><br /> |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
17 |
{% endif %} |
97 | 18 |
|
19 |
{% if notifications.count %} |
|
20 |
<br> {{ notifications.count }} unread <a href='/user/notifications/'> |
|
21 |
{% ifnotequal notifications.count 1 %} |
|
22 |
notifications</a>!! |
|
23 |
{% else %} |
|
24 |
notification</a>!! |
|
25 |
{% endifnotequal %} |
|
26 |
{% endif %} |
|
27 |
||
28 |
{% if requests.count %} |
|
29 |
<br>{{ requests.count }} unreplied <a href='/user/requests/'> |
|
30 |
{% ifnotequal requests.count 1 %} |
|
31 |
requests</a>! |
|
32 |
{% else %} |
|
33 |
request</a>! |
|
34 |
{% endifnotequal %} |
|
35 |
{% endif %} |
|
36 |
||
37 |
{% if user.task_claimed_users.count %} |
|
38 |
<br>{{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a> |
|
39 |
{% ifnotequal user.task_claimed_users.count 1 %} |
|
40 |
tasks! |
|
41 |
{% else %} |
|
42 |
task! |
|
43 |
{% endifnotequal %} |
|
44 |
{% endif %} |
|
45 |
||
46 |
{% if user.task_assigned_users.count %} |
|
47 |
<br>You are currently <a href='/user/assigned/'>working</a> on {{ user.task_assigned_users.count }} |
|
48 |
{% ifnotequal user.task_assigned_users.count 1 %} |
|
49 |
tasks! |
|
50 |
{% else %} |
|
51 |
task! |
|
52 |
{% endifnotequal %} |
|
53 |
{% endif %} |
|
54 |
||
55 |
{% if user.task_mentors.count %} |
|
56 |
<br><a href="/user/mentor/">Mentoring</a> {{ user.task_mentors.count }} |
|
57 |
{% ifnotequal user.task_mentors.count 1 %} |
|
125 | 58 |
tasks! |
59 |
{% else %} |
|
60 |
task! |
|
97 | 61 |
{% endifnotequal %} |
125 | 62 |
<br /> |
63 |
{% endif %} |
|
64 |
||
65 |
{% if unpublished_tasks %} |
|
66 |
<br />Unpublished tasks:<br /> |
|
67 |
{% for a_task in unpublished_tasks %} |
|
68 |
<a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a> |
|
69 |
{% endfor %} |
|
97 | 70 |
{% endif %} |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
71 |
{% endblock %} |