summaryrefslogtreecommitdiff
path: root/templates/task/view.html
diff options
context:
space:
mode:
authoranoop2010-02-25 17:37:14 +0530
committeranoop2010-02-25 17:37:14 +0530
commita725bee741ac5391d7b103aa19e08a5cdff74658 (patch)
treec85fbe3a9cd206a87d96aaa0c16759de2223af89 /templates/task/view.html
parent0f44b2c832a6a8266e4337b0a32190c3864633c6 (diff)
parentb85600400bfff4f467b20e71db9cd5936c2056d4 (diff)
downloadpytask-a725bee741ac5391d7b103aa19e08a5cdff74658.tar.gz
pytask-a725bee741ac5391d7b103aa19e08a5cdff74658.tar.bz2
pytask-a725bee741ac5391d7b103aa19e08a5cdff74658.zip
merged
Diffstat (limited to 'templates/task/view.html')
-rw-r--r--templates/task/view.html10
1 files changed, 7 insertions, 3 deletions
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 %}