templates/task/view.html
changeset 96 2881ed1c52b0
parent 95 e4034904f82e
child 111 c272d4c601cd
--- a/templates/task/view.html	Thu Feb 25 16:37:46 2010 +0530
+++ b/templates/task/view.html	Thu Feb 25 17:00:18 2010 +0530
@@ -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 />