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