author | nishanth |
Mon, 01 Mar 2010 05:41:12 +0530 | |
changeset 159 | a74a32a5a3e1 |
parent 156 | 7cad1e92713d |
child 164 | bfe621e64a16 |
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 %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
7 |
<h3>{{ task.title }}</h3><br /> |
126 | 8 |
|
156 | 9 |
{% if can_edit %} |
10 |
<a href="/task/edit/tid={{task.id}}">Edit task</a> |
|
11 |
{% endif %} |
|
126 | 12 |
|
156 | 13 |
{% if can_close %} |
14 |
<a href="/task/close/tid={{task.id}}">Close this task</a> |
|
111 | 15 |
{% endif %} |
156 | 16 |
|
17 |
{% if can_publish %} |
|
18 |
<a href="/task/publish/tid={{task.id}}">Publish task</a> |
|
19 |
{% endif %} |
|
20 |
||
21 |
<hr />created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> |
|
22 |
on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br /> |
|
111 | 23 |
|
24 |
{% ifequal task.status "UP" %} |
|
25 |
Task can be viewed by: |
|
26 |
{% else %} |
|
27 |
Mentors: |
|
28 |
{% endifequal %} |
|
156 | 29 |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
30 |
{% for mentor in mentors %} |
156 | 31 |
<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
|
32 |
{% endfor %} |
156 | 33 |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
34 |
{% if can_mod_mentors %} |
111 | 35 |
<a href="/task/addmentor/tid={{task.id}}"> |
36 |
{% ifequal task.status "UP" %} |
|
37 |
Request others to view/edit the task |
|
38 |
{% else %} |
|
39 |
Add another Mentor to this task |
|
156 | 40 |
{% endifequal %}</a> |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
41 |
{% endif %} |
156 | 42 |
<br /> |
43 |
||
44 |
<hr /> |
|
45 |
<b>Description:</b><br /> |
|
46 |
{{ task.desc }} |
|
47 |
<hr /> |
|
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
16
diff
changeset
|
48 |
|
72 | 49 |
{% if deps %} |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
50 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
51 |
<br />The task has following dependencies.<br /> |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
52 |
{% for dep in deps %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
53 |
<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
|
54 |
{% endfor %} |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
55 |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
56 |
{% if can_mod_tasks %} |
69
49532a0f5071
added user context variable in view_profile and edit_profile.
nishanth
parents:
66
diff
changeset
|
57 |
<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
|
58 |
<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
|
59 |
{% endif %} |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
60 |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
61 |
{% else %} |
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
62 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
63 |
{% if subs %} |
159 | 64 |
This task cannot be claimed.. It exists only to show all of its sub tasks in one place.<br /> |
65 |
The task has following sub tasks.<br /> |
|
89
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
66 |
{% for sub in subs %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
67 |
<a href="/task/view/tid={{sub.id}}">{{sub.title}}</a><br /> |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
68 |
{% endfor %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
69 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
70 |
{% if can_mod_tasks %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
71 |
<a href="/task/addtask/tid={{task.id}}">add more subtasks</a> |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
72 |
<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
|
73 |
{% endif %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
74 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
75 |
{% else %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
76 |
|
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
77 |
{% if can_mod_tasks %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
78 |
<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
|
79 |
{% endif %} |
1cc03941ed5d
added the capability of adding subtasks/dependencies .
nishanth
parents:
77
diff
changeset
|
80 |
|
72 | 81 |
{% endif %} |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
82 |
{% endif %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
83 |
|
156 | 84 |
{% ifequal task.status "CD" %} |
85 |
Task has been closed by <a href="/user/view={{closing_notification.sent_from.id}}">{{closing_notification.sent_from.username}}</a> |
|
86 |
on {{closing_notification.sent_date|date:"D d M Y"}} at {{closing_notification.sent_date|time:"H:i"}}<br /> |
|
87 |
<b>Reason: </b>{{closing_notification.remarks}}<br /> |
|
88 |
{% endifequal %} |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
89 |
|
156 | 90 |
{% ifequal task.status "CM" %} |
91 |
Task has been marked complete by <a href="/user/view={{completed_notification.sent_from.id}}"> |
|
92 |
{{completed_notification.sent_from.username}}</a> |
|
93 |
on {{completed_notification.sent_date|date:"D d M Y"}} at {{completed_notification.sent_date|time:"H:i"}}<br /> |
|
94 |
{% endifequal %} |
|
95 |
||
96 |
{% ifequal task.status "OP" %} |
|
97 |
<br />There are no users working on this task.<br /> |
|
98 |
{% endifequal %} |
|
99 |
||
100 |
{% if assigned_users %} |
|
101 |
Users working on this task: |
|
102 |
{% for user in assigned_users %} |
|
103 |
<a href="/user/view/uid={{user.id}}">{{user.username}}</a> |
|
104 |
{% endfor %} |
|
105 |
{% if is_mentor %} |
|
106 |
<a href="/task/remuser/tid={{task.id}}">Remove an existing user</a> |
|
114 | 107 |
{% endif %} |
156 | 108 |
<br /> |
109 |
{% endif %} |
|
110 |
||
111 |
{% if can_assign_credits %} |
|
112 |
<a href="/task/assigncredits/tid={{task.id}}">View/Assign credits</a> |
|
113 |
{% endif %} |
|
114 |
||
115 |
{% if task_claimable %} |
|
116 |
<a href="/task/claim/tid={{task.id}}">View claims</a> |
|
117 |
{% endif %} |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
118 |
|
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
119 |
{% if comments %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
120 |
<hr /> |
156 | 121 |
comments:<br /><br /> |
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
122 |
{% for comment in comments %} |
156 | 123 |
<a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> |
124 |
on {{ comment.creation_datetime|date:"D d M Y"}} at {{comment.creation_datetime|time:"H:i"}} wrote:<br /> |
|
125 |
{{ comment.data }}<br /><br /> |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
126 |
{% endfor %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
127 |
{% endif %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
128 |
|
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
129 |
{% if not is_guest %} |
156 | 130 |
<hr /> |
114 | 131 |
{% ifnotequal task.status "CM" %} |
156 | 132 |
Add comment:<br /> |
114 | 133 |
<form action="" method="post"> |
134 |
<!-- we might even want to use forms here --> |
|
135 |
<textarea name="data"></textarea><br /> |
|
136 |
<input type="submit" value="Submit"> |
|
137 |
</form> |
|
138 |
{% endifnotequal %} |
|
66
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
139 |
{% endif %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
140 |
{% else %} |
f670de53402b
modified view task template and view to suit new design.
nishanth
parents:
64
diff
changeset
|
141 |
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
|
142 |
{% endif %} |
a93eebabfeb1
created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff
changeset
|
143 |
{% endblock %} |