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