| author | Nishanth Amuluru <nishanth@fossee.in> |
| Wed, 05 Jan 2011 22:22:10 +0530 | |
| changeset 218 | 59107ce0a618 |
| parent 191 | 3bfe70742aa8 |
| permissions | -rw-r--r-- |
|
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
1 |
{% extends 'base.html' %}
|
|
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
2 |
{% block content %}
|
| 163 | 3 |
<a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br /><br />
|
|
218
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
191
diff
changeset
|
4 |
Requesting a user to act as a reviewer for the task sends him a request. If he accepts the request, he will also be the reviewer for this task |
| 163 | 5 |
{% ifequal task.status "UP" %}
|
|
218
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
191
diff
changeset
|
6 |
and can view/edit<sup><a href="/about/reviewer/" target="_blank">learn more</a></sup> the task. But only the creator of a task can publish the task. |
| 163 | 7 |
{% else %}
|
|
218
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
191
diff
changeset
|
8 |
and will have all the rights<sup><a href="/about/reviewer/" target="_blank">learn more</a></sup> you posses over the task. |
| 163 | 9 |
{% endifequal %}
|
10 |
<br /> |
|
11 |
<br /> |
|
|
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
12 |
<form action="" method="post"> |
|
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
13 |
{{form.as_table}}
|
| 163 | 14 |
<input type="submit" value="Submit"> |
|
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
15 |
</form> |
|
149
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
16 |
{% if pending_requests %}
|
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
17 |
Pending requests:<br /> |
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
18 |
{% for req in pending_requests %}
|
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
19 |
<a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested
|
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
20 |
{% for a_user in req.sent_to.all %}
|
|
218
59107ce0a618
Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents:
191
diff
changeset
|
21 |
<a href="/user/view/uid={{a_user.id}}">{{a_user.username}}</a> to act as a reviewer
|
|
149
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
22 |
{% endfor %}
|
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
23 |
on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br />
|
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
24 |
{% endfor %}
|
|
3395960549e8
now a user cannot make two requests to another user for mentoring a task.
nishanth
parents:
21
diff
changeset
|
25 |
{% endif %}
|
|
21
c28774fe7ffd
implemented "add another mentor" functionality to a task.
nishanth
parents:
diff
changeset
|
26 |
{% endblock %}
|