equal
deleted
inserted
replaced
1 {% extends 'base.html' %} |
|
2 {% block content %} |
|
3 <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.<br /><br /> |
|
4 Requesting a user to act as a mentor for the task sends him a request. If he accepts the request, he will also be the mentor for this task |
|
5 {% ifequal task.status "UP" %} |
|
6 and can view/edit<sup><a href="/about/mentor/" target="_blank">learn more</a></sup> the task. But only the creator of a task can publish the task. |
|
7 {% else %} |
|
8 and will have all the rights<sup><a href="/about/mentor/" target="_blank">learn more</a></sup> you posses over the task. |
|
9 {% endifequal %} |
|
10 <br /> |
|
11 <br /> |
|
12 <form action="" method="post"> |
|
13 {{form.as_table}} |
|
14 <input type="submit" value="Submit"> |
|
15 </form> |
|
16 {% if pending_requests %} |
|
17 Pending requests:<br /> |
|
18 {% for req in pending_requests %} |
|
19 <a href="/user/view/uid={{req.sent_by.id}}">{{req.sent_by.username}}</a> requested |
|
20 {% for a_user in req.sent_to.all %} |
|
21 <a href="/user/view/uid={{a_user.id}}">{{a_user.username}}</a> to act as a mentor |
|
22 {% endfor %} |
|
23 on {{req.creation_date|date:"D d M Y"}} at {{req.creation_date|time:"H:i"}}<br /> |
|
24 {% endfor %} |
|
25 {% endif %} |
|
26 {% endblock %} |
|