summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/task/claim.html8
-rw-r--r--templates/task/view.html15
2 files changed, 15 insertions, 8 deletions
diff --git a/templates/task/claim.html b/templates/task/claim.html
index c656146..47e24b7 100644
--- a/templates/task/claim.html
+++ b/templates/task/claim.html
@@ -8,11 +8,15 @@
{{claim.message}}<br />
{% endfor %}
{% else %}
- There are no claims for this task yet.<br />
+ {% if task_claimable%}
+ There are no claims for this task yet.<br />
+ {% else %}
+ This task cannot be claimed right now.
+ {% endif %}
<a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.
{% endif %}
{% if task_claimed and is_mentor %}
- <a href="/task/assign/tid={{task.id}}">Assign task</a>
+ <a href="/task/assign/tid={{task.id}}">Select a user to assign the work.</a>
{% endif %}
{% if user_can_claim %}
<hr />
diff --git a/templates/task/view.html b/templates/task/view.html
index 9f01594..39f0490 100644
--- a/templates/task/view.html
+++ b/templates/task/view.html
@@ -17,7 +17,7 @@
edit task goes here and it should contain all those add subs and add deps depending on availability<br />
{% endif %}
- {% if deps %}
+ {% if deps %}
<br />The task has following dependencies
{% for dep in deps %}
<a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br />
@@ -27,9 +27,9 @@
<a href="/task/remtask/tid={{task.id}}">remove an existing dependency</a>
{% endif %}
{% else %}
- {%if can_mod_tasks %}
+ {% if can_mod_tasks %}
<a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a>
- {%endif%}
+ {% endif %}
{% endif %}
<hr>
@@ -43,12 +43,15 @@
{% for user in assigned_users %}
<a href="/user/view/uid={{user.id}}">{{user.username}}</a>|
{% endfor %}
+ {% if is_mentor %}
+ <a href="/task/user/remove/">Remove an existing user</a>
<br />
+ {% endif %}
{% endif %}
- {%if can_assign_credits%}
+ {% if can_assign_credits %}
<a href="/task/assigncredits/tid={{task.id}}">Assign credits</a>
- {%endif%}
- {% if not is_guest %}
+ {% endif %}
+ {% if not is_guest and task_claimable %}
<a href="/task/claim/tid={{task.id}}">View claims</a><br />
{% endif %}