|
1 {% extends 'base.html' %} |
|
2 {% block title %} |
|
3 {{task.title}} |
|
4 {% endblock %} |
|
5 {% block content %} |
|
6 <h3>{{ task.title }}</h3> |
|
7 |
|
8 {% if can_edit %} |
|
9 <a href="/task/edit/tid={{task.uniq_key}}">Edit task</a> |
|
10 {% endif %} |
|
11 |
|
12 {% if can_publish %} |
|
13 <a href="/task/approve/tid={{task.uniq_key}}">Approve task</a> |
|
14 {% endif %} |
|
15 |
|
16 {% if can_close %} |
|
17 <a href="/task/close/tid={{task.uniq_key}}">Close task</a> |
|
18 {% endif %} |
|
19 |
|
20 {% if can_delete %} |
|
21 <a href="/task/delete/tid={{task.uniq_key}}">Delete task</a> |
|
22 {% endif %} |
|
23 |
|
24 <hr />created by <a href="/user/view/uid={{ task.created_by.uniq_key }}">{{ task.created_by.username }}</a> |
|
25 on {{task.creation_datetime|date:"D d M Y"}} at {{task.creation_datetime|time:"H:i"}}<br /> |
|
26 |
|
27 {% ifequal task.status "UP" %} |
|
28 Task can be viewed by: |
|
29 {% else %} |
|
30 Reviewers: |
|
31 {% endifequal %} |
|
32 |
|
33 {% for reviewer in reviewers %} |
|
34 <a href="/user/view/uid={{reviewer.id}}">{{reviewer.username}}</a> |
|
35 {% endfor %} |
|
36 |
|
37 {% if can_mod_reviewers %} |
|
38 <a href="/task/addreviewer/tid={{task.uniq_key}}"> |
|
39 {% ifequal task.status "UP" %} |
|
40 Request others to view/edit the task |
|
41 {% else %} |
|
42 Add another Reviewer to this task |
|
43 {% endifequal %}</a> |
|
44 {% endif %} |
|
45 <br /> |
|
46 |
|
47 <hr /> |
|
48 <b>Description:</b><br /> |
|
49 {{ task.desc|linebreaksbr }} |
|
50 <br /><br /><hr /> |
|
51 {% if task.tags.count %} |
|
52 Tags: |
|
53 {% for tag in task.tags %} |
|
54 {{tag}} |
|
55 {% endfor %} |
|
56 <hr /> |
|
57 {% endif %} |
|
58 |
|
59 |
|
60 {% ifequal task.status "CD" %} |
|
61 Task has been closed by <a href="/user/view={{closing_notification.sent_from.id}}">{{closing_notification.sent_from.username}}</a> |
|
62 on {{closing_notification.sent_date|date:"D d M Y"}} at {{closing_notification.sent_date|time:"H:i"}}<br /> |
|
63 <b>Reason: </b>{{closing_notification.remarks}}<br /> |
|
64 {% endifequal %} |
|
65 |
|
66 {% ifequal task.status "CM" %} |
|
67 Task has been marked complete by <a href="/user/view={{completed_notification.sent_from.id}}"> |
|
68 {{completed_notification.sent_from.username}}</a> |
|
69 on {{completed_notification.sent_date|date:"D d M Y"}} at {{completed_notification.sent_date|time:"H:i"}}<br /> |
|
70 {% endifequal %} |
|
71 |
|
72 {% ifequal task.status "OP" %} |
|
73 <br />There are no users working on this task.<br /> |
|
74 {% endifequal %} |
|
75 |
|
76 {% if subs %} |
|
77 <br />This task cannot be claimed.. It exists only to show all of its sub tasks in one place.<br /> |
|
78 {% endif %} |
|
79 |
|
80 {% if assigned_users %} |
|
81 Users working on this task: |
|
82 {% for user in assigned_users %} |
|
83 <a href="/user/view/uid={{user.id}}">{{user.username}}</a> |
|
84 {% endfor %} |
|
85 {% if is_reviewer %} |
|
86 <a href="/task/remuser/tid={{task.uniq_key}}">Remove an existing user</a> |
|
87 {% endif %} |
|
88 <br /> |
|
89 {% endif %} |
|
90 |
|
91 {% if can_assign_pynts %} |
|
92 <a href="/task/assignpynts/tid={{task.uniq_key}}">View/Assign pynts</a> |
|
93 {% endif %} |
|
94 |
|
95 {% if task_claimable %} |
|
96 <a href="/task/claim/tid={{task.uniq_key}}"> |
|
97 {% if is_reviewer %} |
|
98 View claims |
|
99 {% else %} |
|
100 <a href="/task/report/tid={{task.uniq_key}}">Submit Work</a> |
|
101 Claim the task |
|
102 {% endif %}</a> |
|
103 {% endif %} |
|
104 |
|
105 {% if comments %} |
|
106 <hr /> |
|
107 comments:<br /><br /> |
|
108 {% for comment in comments %} |
|
109 <a href="/user/view/uid={{comment.created_by.uniq_key}}">{{ comment.created_by.username }}</a> |
|
110 on {{ comment.comment_datetime|date:"D d M Y"}} at {{comment.comment_datetime|time:"H:i"}} wrote:<br /> |
|
111 {{ comment.data|linebreaksbr }}<br /><br /> |
|
112 {% endfor %} |
|
113 {% endif %} |
|
114 |
|
115 {% if not is_guest %} |
|
116 <hr /> |
|
117 {% if error_msg %} |
|
118 {{error_msg}}<br /> |
|
119 {% endif %} |
|
120 {% ifnotequal task.status "UP" %} |
|
121 Add comment:<br /> |
|
122 <form action="" method="post"> |
|
123 {% csrf_token %} |
|
124 {{form.as_p}} |
|
125 <input type="submit" value="Submit"> |
|
126 </form> |
|
127 {% else %} |
|
128 {% if is_reviewer %} |
|
129 Add comment:<br /> |
|
130 <form action="" method="post"> |
|
131 {% csrf_token %} |
|
132 {{form.as_p}} |
|
133 <input type="submit" value="Submit"> |
|
134 </form> |
|
135 {% endif %} |
|
136 {% endifnotequal %} |
|
137 {% endif %} |
|
138 {% endblock %} |