equal
deleted
inserted
replaced
5 {% block content %} |
5 {% block content %} |
6 {% if task_viewable %} |
6 {% if task_viewable %} |
7 <h3>{{ task.title }}</h3><br /> |
7 <h3>{{ task.title }}</h3><br /> |
8 <!-- 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 --> |
9 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 /> |
10 if task_editable ..<br /> |
10 |
11 {% if is_mentor %} |
11 {% if is_mentor %} |
12 <a href="/task/edit/tid={{task.id}}">Edit task</a> |
12 |
13 {% if can_publish %}|<a href="/task/publish/tid={{task.id}}">Publish task</a>{% endif %} |
13 {% ifequal task.status "UP" %} |
|
14 <a href="/task/edit/tid={{task.id}}">Edit task</a> |
|
15 {% else %} |
|
16 <a href="/task/close/tid={{task.id}}">Close this task</a> |
|
17 {% endifequal %} |
|
18 |
|
19 {% if can_publish %} |
|
20 <a href="/task/publish/tid={{task.id}}">Publish task</a> |
|
21 {% endif %} |
14 <br /> |
22 <br /> |
15 {% endif %} |
23 {% endif %} |
16 |
24 |
17 {% ifequal task.status "UP" %} |
25 {% ifequal task.status "UP" %} |
18 Task can be viewed by: |
26 Task can be viewed by: |
84 {% endif %} |
92 {% endif %} |
85 {% else %} |
93 {% else %} |
86 There are no users currently working on this task.<br /> |
94 There are no users currently working on this task.<br /> |
87 {% endif %} |
95 {% endif %} |
88 {% if can_assign_credits %} |
96 {% if can_assign_credits %} |
89 <a href="/task/assigncredits/tid={{task.id}}">Assign credits</a> |
97 <a href="/task/assigncredits/tid={{task.id}}">View/Assign credits</a> |
90 {% endif %} |
98 {% endif %} |
91 {% if not is_guest and task_claimable %} |
99 {% if not is_guest and task_claimable %} |
92 <a href="/task/claim/tid={{task.id}}">View claims for this task</a>.<br /> |
100 <a href="/task/claim/tid={{task.id}}">View claims</a><br /> |
93 {% endif %} |
101 {% endif %} |
94 {% else %} |
102 {% else %} |
95 {% ifequal task.status "CD" %} |
103 {% ifequal task.status "CD" %} |
96 The task has been closed by .. due to .. |
104 The task has been closed by .. due to .. |
97 {% else %} |
105 {% else %} |