author | nishanth |
Thu, 25 Feb 2010 23:49:38 +0530 | |
changeset 104 | d1bdd5d6c1a6 |
parent 97 | 3699550991c6 |
child 125 | d3cfceb8e120 |
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 %} |
|
58 |
tasks! |
|
59 |
{% endifnotequal %} |
|
60 |
task! |
|
61 |
{% endif %} |
|
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
62 |
{% endblock %} |