4 {% endblock %} |
4 {% endblock %} |
5 {% block content %} |
5 {% block content %} |
6 <h3>{{ task.title }}</h3> |
6 <h3>{{ task.title }}</h3> |
7 |
7 |
8 {% if can_edit %} |
8 {% if can_edit %} |
9 <a href="/task/edit/tid={{task.uniq_key}}">Edit task</a> |
9 <a href="{% url edit_task task.id %}">Edit task</a> |
10 {% endif %} |
10 {% endif %} |
11 |
11 |
12 {% if can_approve %} |
12 {% if can_approve %} |
13 <a href="/task/approve/tid={{task.uniq_key}}">Approve task</a> |
13 <a href="{% url approve_task task.id %}">Approve task</a> |
14 {% endif %} |
14 {% endif %} |
15 |
15 |
16 {% if can_close %} |
16 {% if can_close %} |
17 <a href="/task/close/tid={{task.uniq_key}}">Close task</a> |
17 <a href="{% url close_task task.id %}">Close task</a> |
18 {% endif %} |
18 {% endif %} |
19 |
|
20 <!-- |
|
21 {% if can_delete %} |
|
22 <a href="/task/delete/tid={{task.uniq_key}}">Delete task</a> |
|
23 {% endif %} |
|
24 --> |
|
25 |
19 |
26 <hr />created by <a href="/profile/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> |
20 <hr />created by <a href="{% url view_user_profile task.created_by.id %}">{{ task.created_by.username }}</a> |
27 on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br /> |
21 on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br /> |
28 |
22 |
29 {% if reviewers %} |
23 {% if reviewers %} |
30 Reviewers: |
24 Reviewers: |
31 {% for reviewer in reviewers %} |
25 {% for reviewer in reviewers %} |
32 <a href="/profile/user/view/uid={{reviewer.id}}">{{reviewer.username}}</a> |
26 <a href="{% url view_user_profile reviewer.id %}">{{reviewer.username}}</a> |
33 {% endfor %} |
27 {% endfor %} |
34 {% endif %} |
28 {% endif %} |
35 |
29 |
36 |
|
37 {% if can_mod_reviewers %} |
30 {% if can_mod_reviewers %} |
38 <a href="/task/addreviewer/tid={{task.uniq_key}}"> |
31 <a href="{% url addreviewer_task task.id %}"> |
39 Add a Reviewer to this task</a> |
32 Add a Reviewer to this task</a> |
40 {% endif %} |
33 {% endif %} |
41 <br /> |
34 <br /> |
42 |
35 |
43 <hr /> |
36 <hr /> |
50 {{tag}} |
43 {{tag}} |
51 {% endfor %} |
44 {% endfor %} |
52 <hr /> |
45 <hr /> |
53 {% endif %} |
46 {% endif %} |
54 |
47 |
55 |
|
56 <!-- |
|
57 {% ifequal task.status "CD" %} |
|
58 Task has been closed by <a href="/profile/user/view={{closing_notification.sent_from.id}}">{{closing_notification.sent_from.username}}</a> |
|
59 on {{closing_notification.sent_date|date:"D d M Y"}} at {{closing_notification.sent_date|time:"H:i"}}<br /> |
|
60 <b>Reason: </b>{{closing_notification.remarks}}<br /> |
|
61 {% endifequal %} |
|
62 |
|
63 {% ifequal task.status "CM" %} |
|
64 Task has been marked complete by <a href="/profile/user/view={{completed_notification.sent_from.id}}"> |
|
65 {{completed_notification.sent_from.username}}</a> |
|
66 on {{completed_notification.sent_date|date:"D d M Y"}} at {{completed_notification.sent_date|time:"H:i"}}<br /> |
|
67 {% endifequal %} |
|
68 |
|
69 {% ifequal task.status "OP" %} |
|
70 <br />There are no users working on this task.<br /> |
|
71 {% endifequal %} |
|
72 |
|
73 {% if subs %} |
|
74 <br />This task cannot be claimed.. It exists only to show all of its sub tasks in one place.<br /> |
|
75 {% endif %} |
|
76 --> |
|
77 |
|
78 {% if selected_users %} |
48 {% if selected_users %} |
79 Users working on this task: |
49 Users working on this task: |
80 {% for user in selected_users %} |
50 {% for user in selected_users %} |
81 <a href="/profile/user/view/uid={{user.id}}">{{user.username}}</a> |
51 <a href="{% url view_profile user.id %}">{{user.username}}</a> |
82 {% endfor %} |
52 {% endfor %} |
83 <br /> |
53 <br /> |
84 {% endif %} |
54 {% endif %} |
85 |
55 |
86 {% if task_claimable %} |
56 {% if task_claimable %} |
87 <a href="/task/claim/tid={{task.uniq_key}}">View claims</a> |
57 <a href="{% url claim_task task.id %}">View claims</a> |
88 {% endif %} |
58 {% endif %} |
89 |
59 |
90 <a href="/task/view/work/tid={{task.uniq_key}}">View submitted work reports</a> |
60 <a href="{% url view_work task.id %}">View submitted work reports</a> |
91 |
61 |
92 <hr /> |
62 <hr /> |
93 {% if comments %} |
63 {% if comments %} |
94 comments:<br /><br /> |
64 comments:<br /><br /> |
95 {% for comment in comments %} |
65 {% for comment in comments %} |
96 <a href="/profile/user/view/uid={{comment.commented_by.id}}">{{ comment.commented_by.username }}</a> |
66 <a href="{% url view_profile comment.commented_by.id %}">{{ comment.commented_by.username }}</a> |
97 on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br /> |
67 on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br /> |
98 {{ comment.data|linebreaksbr }}<br /> |
68 {{ comment.data|linebreaksbr }}<br /> |
99 {% endfor %} |
69 {% endfor %} |
100 {% endif %} |
70 {% endif %} |
101 <hr /> |
71 <hr /> |