2 {% block title %} |
2 {% block title %} |
3 {{task.title}} |
3 {{task.title}} |
4 {% endblock %} |
4 {% endblock %} |
5 {% block content %} |
5 {% block content %} |
6 {% if task_viewable %} |
6 {% if task_viewable %} |
7 {% if is_mentor %} |
|
8 <a href="/task/edit/tid={{task.id}}">Edit task</a> |
|
9 {% endif %} |
|
10 <h3>{{ task.title }}</h3><br /> |
7 <h3>{{ task.title }}</h3><br /> |
11 <!-- we have to write our own datetime.strftime filter and use in the next line --> |
8 <!-- we have to write our own datetime.strftime filter and use in the next line --> |
12 created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br /> |
9 created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br /> |
13 Mentors: |
10 {% if is_mentor %} |
|
11 <a href="/task/edit/tid={{task.id}}">Edit task</a> |
|
12 {% if can_publish %}|<a href="/task/publish/tid={{task.id}}">Publish task</a>{% endif %} |
|
13 <br /> |
|
14 {% endif %} |
|
15 |
|
16 {% ifequal task.status "UP" %} |
|
17 Task can be viewed by: |
|
18 {% else %} |
|
19 Mentors: |
|
20 {% endifequal %} |
14 {% for mentor in mentors %} |
21 {% for mentor in mentors %} |
15 <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a> |
22 <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a> |
16 {% endfor %} |
23 {% endfor %} |
17 {% if can_mod_mentors %} |
24 {% if can_mod_mentors %} |
18 <a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a> |
25 <a href="/task/addmentor/tid={{task.id}}"> |
19 <br /> |
26 {% ifequal task.status "UP" %} |
20 edit task goes here and it should contain all those add subs and add deps depending on availability<br /> |
27 Request others to view/edit the task |
|
28 {% else %} |
|
29 Add another Mentor to this task |
|
30 {% endifequal %}</a><br /> |
21 {% endif %} |
31 {% endif %} |
22 |
32 |
23 {% if deps %} |
33 {% if deps %} |
24 |
34 |
25 <br />The task has following dependencies.<br /> |
35 <br />The task has following dependencies.<br /> |