author | nishanth |
Thu, 25 Feb 2010 06:07:55 +0530 | |
changeset 93 | 1a1e712e60fd |
parent 89 | 1cc03941ed5d |
child 94 | d1f59bbc2685 |
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 title %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
3 |
{{task.title}} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
4 |
{% endblock %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
5 |
{% block content %} |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
6 |
{% if task_viewable %} |
70 | 7 |
<a href="/task/edit/tid={{task.id}}">Edit task</a> |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
8 |
<h3>{{ task.title }}</h3><br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
9 |
<!-- we have to write our own datetime.strftime filter and use in the next line --> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
10 |
created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
11 |
Mentors: |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
12 |
{% for mentor in mentors %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
13 |
<a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a> |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
14 |
{% endfor %} |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
15 |
{% if can_mod_mentors %} |
76 | 16 |
<a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a> |
17 |
<br /> |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
18 |
edit task goes here and it should contain all those add subs and add deps depending on availability<br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
19 |
{% endif %} |
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
16
diff
changeset
|
20 |
|
72 | 21 |
{% if deps %} |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
22 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
23 |
<br />The task has following dependencies.<br /> |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
24 |
{% for dep in deps %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
25 |
<a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
26 |
{% endfor %} |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
27 |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
28 |
{% if can_mod_tasks %} |
69
49532a0f5071
added user context variable in view_profile and edit_profile.
nishanth
parents:
66
diff
changeset
|
29 |
<a href="/task/addtask/tid={{task.id}}">add more dependencies</a> |
49532a0f5071
added user context variable in view_profile and edit_profile.
nishanth
parents:
66
diff
changeset
|
30 |
<a href="/task/remtask/tid={{task.id}}">remove an existing dependency</a> |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
31 |
{% endif %} |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
32 |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
33 |
{% else %} |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
34 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
35 |
{% if subs %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
36 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
37 |
<br />The task has following sub tasks.<br /> |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
38 |
{% for sub in subs %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
39 |
<a href="/task/view/tid={{sub.id}}">{{sub.title}}</a><br /> |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
40 |
{% endfor %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
41 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
42 |
{% if can_mod_tasks %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
43 |
<a href="/task/addtask/tid={{task.id}}">add more subtasks</a> |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
44 |
<a href="/task/remtask/tid={{task.id}}">remove an existing subtask</a> |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
45 |
{% endif %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
46 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
47 |
{% else %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
48 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
49 |
{% if can_mod_tasks %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
50 |
<a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a> |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
51 |
{% endif %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
52 |
|
72 | 53 |
{% endif %} |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
54 |
{% endif %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
55 |
|
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
56 |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
57 |
<hr> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
58 |
<br />Description:<br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
59 |
<br />{{ task.desc }}<br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
60 |
<hr> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
61 |
|
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
62 |
status of task is {{task.status}}<br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
63 |
{% if assigned_users %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
64 |
Users working on this task: |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
65 |
{% for user in assigned_users %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
66 |
<a href="/user/view/uid={{user.id}}">{{user.username}}</a>| |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
67 |
{% endfor %} |
72 | 68 |
{% if is_mentor %} |
69 |
<a href="/task/user/remove/">Remove an existing user</a> |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
70 |
<br /> |
72 | 71 |
{% endif %} |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
72 |
{% endif %} |
72 | 73 |
{% if can_assign_credits %} |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
74 |
<a href="/task/assigncredits/tid={{task.id}}">Assign credits</a> |
72 | 75 |
{% endif %} |
76 |
{% if not is_guest and task_claimable %} |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
77 |
<a href="/task/claim/tid={{task.id}}">View claims</a><br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
78 |
{% endif %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
79 |
|
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
80 |
{% if comments %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
81 |
<hr /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
82 |
<br/>comments:<br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
83 |
{% for comment in comments %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
84 |
<br /><a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> at {{ comment.creation_datetime.ctime }} wrote:<br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
85 |
{{ comment.data }}<br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
86 |
{% endfor %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
87 |
{% endif %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
88 |
|
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
89 |
{% if not is_guest %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
90 |
<br />Add comment:<br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
91 |
<form action="" method="post"> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
92 |
<!-- we might even want to use forms here --> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
93 |
<textarea name="data"></textarea><br /> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
94 |
<input type="submit" value="Submit"> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
95 |
</form> |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
96 |
{% endif %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
97 |
{% else %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
98 |
You are not authorised to view this task. <a href="/task/browse/">click here</a> to return to browsing the tasks. |
12
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
99 |
{% endif %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
100 |
{% endblock %} |