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