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