pytask/templates/task/view.html
changeset 15 c6038cbf8a39
parent 14 f2623fb8041a
child 18 293692eb8f06
--- a/pytask/templates/task/view.html	Mon Feb 01 11:10:29 2010 +0530
+++ b/pytask/templates/task/view.html	Mon Feb 01 11:41:26 2010 +0530
@@ -20,7 +20,11 @@
     <br />{{ task.desc }}<br />
     <hr>
     status of task is {{task.status}}<br />
-    view claims goes here depending on availability of claim<br />
+    {% if user_can_view_claim %}
+        <a href="/task/claim/tid={{task.id}}">View claims</a><br />
+        view claims goes here depending on availability of claim<br />
+    {% endif %}
+    
     {% if comments %}
         <br/>comments:<br />
         {% for comment in comments %}