summaryrefslogtreecommitdiff
path: root/templates/task/view.html
diff options
context:
space:
mode:
authoranoop2010-02-24 16:52:03 +0530
committeranoop2010-02-24 16:52:03 +0530
commitcc15ee32b4fbd1b032b0d8bd916ba2dc88a91078 (patch)
treee28a13f8c7ef821bfd8a4f95869c75a025743416 /templates/task/view.html
parentafef2d96978cd0afa2e3398e30e98dcaff6c2166 (diff)
parent937d453ba3a6bc2bca0fe94d4b392f5abf2aa8bc (diff)
downloadpytask-cc15ee32b4fbd1b032b0d8bd916ba2dc88a91078.tar.gz
pytask-cc15ee32b4fbd1b032b0d8bd916ba2dc88a91078.tar.bz2
pytask-cc15ee32b4fbd1b032b0d8bd916ba2dc88a91078.zip
merged.
Diffstat (limited to 'templates/task/view.html')
-rw-r--r--templates/task/view.html18
1 files changed, 11 insertions, 7 deletions
diff --git a/templates/task/view.html b/templates/task/view.html
index 9f01594..1d9a69d 100644
--- a/templates/task/view.html
+++ b/templates/task/view.html
@@ -13,11 +13,12 @@
<a href="/user/view/uid={{mentor.id}}">{{mentor.username}}|</a>
{% endfor %}
{% if can_mod_mentors %}
- <a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a><br />
+ <a href="/task/addmentor/tid={{task.id}}">Add another Mentor to this task</a>
+ <br />
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 +28,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 +44,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 %}