--- a/templates/task/view.html Wed Feb 24 20:33:45 2010 +0530
+++ b/templates/task/view.html Thu Feb 25 02:11:49 2010 +0530
@@ -19,20 +19,41 @@
{% endif %}
{% if deps %}
- <br />The task has following dependencies
+
+ <br />The task has following dependencies.<br />
{% for dep in deps %}
<a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br />
{% endfor %}
+
{% if can_mod_tasks %}
<a href="/task/addtask/tid={{task.id}}">add more dependencies</a>
<a href="/task/remtask/tid={{task.id}}">remove an existing dependency</a>
{% endif %}
+
{% else %}
- {% if can_mod_tasks %}
- <a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a>
+
+ {% if subs %}
+
+ <br />The task has following sub tasks.<br />
+ {% for sub in subs %}
+ <a href="/task/view/tid={{sub.id}}">{{sub.title}}</a><br />
+ {% endfor %}
+
+ {% if can_mod_tasks %}
+ <a href="/task/addtask/tid={{task.id}}">add more subtasks</a>
+ <a href="/task/remtask/tid={{task.id}}">remove an existing subtask</a>
+ {% endif %}
+
+ {% else %}
+
+ {% if can_mod_tasks %}
+ <a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a>
+ {% endif %}
+
{% endif %}
{% endif %}
+
<hr>
<br />Description:<br />
<br />{{ task.desc }}<br />