summaryrefslogtreecommitdiff
path: root/templates/task
diff options
context:
space:
mode:
Diffstat (limited to 'templates/task')
-rw-r--r--templates/task/assigncredits.html2
-rw-r--r--templates/task/remove_user.html11
-rw-r--r--templates/task/view.html10
3 files changed, 19 insertions, 4 deletions
diff --git a/templates/task/assigncredits.html b/templates/task/assigncredits.html
index 1272367..21d8807 100644
--- a/templates/task/assigncredits.html
+++ b/templates/task/assigncredits.html
@@ -3,7 +3,7 @@
{{task.title}}
{% endblock %}
{% block content %}
-
+ <a href="/task/view/tid={{task.id}}">Click here</a> to return to the task.
{% if prev_credits %}
<hr />
<br/>Previous credits:<br />
diff --git a/templates/task/remove_user.html b/templates/task/remove_user.html
new file mode 100644
index 0000000..5ea2b19
--- /dev/null
+++ b/templates/task/remove_user.html
@@ -0,0 +1,11 @@
+{% extends 'base.html' %}
+{% block title %}
+ Remove users for {{task.title}}
+{% endblock %}
+{% block content %}
+ <a href="/task/view/tid={{task.id}}">Click here</a> to return to {{task.title}}
+ <form action="" method="post">
+ {{form.as_p}}
+ <input value="Submit" type="submit">
+ </form>
+{% endblock %}
diff --git a/templates/task/view.html b/templates/task/view.html
index 64e73c0..c22284c 100644
--- a/templates/task/view.html
+++ b/templates/task/view.html
@@ -4,7 +4,9 @@
{% endblock %}
{% block content %}
{% if task_viewable %}
- <a href="/task/edit/tid={{task.id}}">Edit task</a>
+ {% if is_mentor %}
+ <a href="/task/edit/tid={{task.id}}">Edit task</a>
+ {% endif %}
<h3>{{ task.title }}</h3><br />
<!-- we have to write our own datetime.strftime filter and use in the next line -->
created by <a href="/user/view/uid={{ task.created_by.id }}">{{ task.created_by.username }}</a> on {{ task.creation_datetime.ctime }}<br />
@@ -66,15 +68,17 @@
<a href="/user/view/uid={{user.id}}">{{user.username}}</a>|
{% endfor %}
{% if is_mentor %}
- <a href="/task/user/remove/">Remove an existing user</a>
+ <a href="/task/remuser/tid={{task.id}}">Remove an existing user</a>
<br />
{% endif %}
+ {% else %}
+ There are no users currently working on this task.<br />
{% endif %}
{% if can_assign_credits %}
<a href="/task/assigncredits/tid={{task.id}}">Assign credits</a>
{% endif %}
{% if not is_guest and task_claimable %}
- <a href="/task/claim/tid={{task.id}}">View claims</a><br />
+ <a href="/task/claim/tid={{task.id}}">View claims for this task</a>.<br />
{% endif %}
{% if comments %}