diff options
Diffstat (limited to 'templates/task/view.html')
-rw-r--r-- | templates/task/view.html | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/templates/task/view.html b/templates/task/view.html index 1d9a69d..64e73c0 100644 --- a/templates/task/view.html +++ b/templates/task/view.html @@ -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 /> |