1 {% extends 'base.html' %} |
1 {% extends 'base.html' %} |
2 {% block title %} |
2 {% block title %} |
3 {{task.title}} |
3 {{task.title}} |
4 {% endblock %} |
4 {% endblock %} |
5 {% block content %} |
5 {% block content %} |
6 <a href="/task/browse/">Browse tasks</a> |
6 {% if task_viewable %} |
7 <h3>{{ task.title }}</h3><br /> |
7 <a href="/task/browse/">Browse tasks</a> |
8 <!-- we have to write our own datetime.strftime filter and use in the next line --> |
8 <h3>{{ task.title }}</h3><br /> |
9 created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br /> |
9 <!-- we have to write our own datetime.strftime filter and use in the next line --> |
10 Mentors: |
10 created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br /> |
11 {% for mentor in mentors %} |
11 Mentors: |
12 <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a> |
12 {% for mentor in mentors %} |
13 {% endfor %} |
13 <a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a> |
14 {% if is_mentor %} |
|
15 <br /><a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a><br /> |
|
16 edit task goes here and it should contain all those add subs and add deps depending on availability<br /> |
|
17 {% endif %} |
|
18 <hr> |
|
19 <br />Description:<br /> |
|
20 <br />{{ task.desc }}<br /> |
|
21 <hr> |
|
22 status of task is {{task.status}}<br /> |
|
23 {% if assigned_users %} |
|
24 Users working on this task: |
|
25 {% for user in assigned_users %} |
|
26 <a href="/user/view/uid={{user.id}}">{{user.username}}</a>| |
|
27 {% endfor %} |
|
28 <br /> |
|
29 {% endif %} |
|
30 {% if not is_guest %} |
|
31 <a href="/task/claim/tid={{task.id}}">View claims</a><br /> |
|
32 {% endif %} |
|
33 |
|
34 {% if comments %} |
|
35 <hr /> |
|
36 <br/>comments:<br /> |
|
37 {% for comment in comments %} |
|
38 <br /><a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> at {{ comment.creation_datetime.ctime }} wrote:<br /> |
|
39 {{ comment.data }}<br /> |
|
40 {% endfor %} |
14 {% endfor %} |
41 {% endif %} |
15 {% if can_mod_mentors %} |
|
16 <br /><a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a><br /> |
|
17 edit task goes here and it should contain all those add subs and add deps depending on availability<br /> |
|
18 {% endif %} |
42 |
19 |
43 {% if not is_guest %} |
20 {% if deps %} |
44 <br />Add comment:<br /> |
21 <br />The task has following dependencies |
45 <form action="" method="post"> |
22 {% for dep in deps %} |
46 <!-- we might even want to use forms here --> |
23 <a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br /> |
47 <textarea name="data"></textarea><br /> |
24 {% endfor %} |
48 <input type="submit" value="Submit"> |
25 {% if can_mod_tasks %} |
49 </form> |
26 <a href="/task/addtask/tid={{task.id}}">add more tasks</a> |
|
27 <a href="/task/remtask/tid={{task.id}}">remove an existing task</a> |
|
28 {% endif %} |
|
29 {% else %} |
|
30 {%if can_mod_tasks %} |
|
31 <a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a> |
|
32 {%endif%} |
|
33 {% endif %} |
|
34 |
|
35 <hr> |
|
36 <br />Description:<br /> |
|
37 <br />{{ task.desc }}<br /> |
|
38 <hr> |
|
39 |
|
40 status of task is {{task.status}}<br /> |
|
41 {% if assigned_users %} |
|
42 Users working on this task: |
|
43 {% for user in assigned_users %} |
|
44 <a href="/user/view/uid={{user.id}}">{{user.username}}</a>| |
|
45 {% endfor %} |
|
46 <br /> |
|
47 {% endif %} |
|
48 {%if can_assign_credits%} |
|
49 <a href="/task/assigncredits/tid={{task.id}}">Assign credits</a> |
|
50 {%endif%} |
|
51 {% if not is_guest %} |
|
52 <a href="/task/claim/tid={{task.id}}">View claims</a><br /> |
|
53 {% endif %} |
|
54 |
|
55 {% if comments %} |
|
56 <hr /> |
|
57 <br/>comments:<br /> |
|
58 {% for comment in comments %} |
|
59 <br /><a href="/user/view/uid={{comment.created_by.id}}">{{ comment.created_by.username }}</a> at {{ comment.creation_datetime.ctime }} wrote:<br /> |
|
60 {{ comment.data }}<br /> |
|
61 {% endfor %} |
|
62 {% endif %} |
|
63 |
|
64 {% if not is_guest %} |
|
65 <br />Add comment:<br /> |
|
66 <form action="" method="post"> |
|
67 <!-- we might even want to use forms here --> |
|
68 <textarea name="data"></textarea><br /> |
|
69 <input type="submit" value="Submit"> |
|
70 </form> |
|
71 {% endif %} |
|
72 {% else %} |
|
73 You are not authorised to view this task. <a href="/task/browse/">click here</a> to return to browsing the tasks. |
50 {% endif %} |
74 {% endif %} |
51 {% endblock %} |
75 {% endblock %} |