summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authornishanth2010-03-03 05:14:56 +0530
committernishanth2010-03-03 05:14:56 +0530
commit100a0c9c69bfad9519f2886977a30b6a18fe0fe9 (patch)
treee002f3c5cde5ceb9a8c107cd1992b084141553ab /templates
parent5dfb4ac386203b008fed85ff959f523a9a3197a3 (diff)
downloadpytask-100a0c9c69bfad9519f2886977a30b6a18fe0fe9.tar.gz
pytask-100a0c9c69bfad9519f2886977a30b6a18fe0fe9.tar.bz2
pytask-100a0c9c69bfad9519f2886977a30b6a18fe0fe9.zip
now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html20
-rw-r--r--templates/task/view.html12
2 files changed, 19 insertions, 13 deletions
diff --git a/templates/index.html b/templates/index.html
index 6346165..44f5e6f 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -86,34 +86,38 @@
-->
{% if unpublished_tasks %}
- Unpublished tasks viewable by you:<br />
+ Unpublished tasks viewable by you:<br /><ul>
{% for a_task in unpublished_tasks %}
- <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
+ <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
{% endfor %}
+ </ul>
<br /><br />
{% endif %}
{% if mentored_tasks %}
- Tasks you are mentoring:<br />
+ Tasks you are mentoring:<br /><ul>
{% for a_task in mentored_tasks %}
- <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
+ <li></li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
{% endfor %}
+ </ul>
<br /><br >
{% endif %}
{% if working_tasks %}
- Tasks that have been assigned to you:<br />
+ Tasks that have been assigned to you:<br /><ul>
{% for a_task in working_tasks %}
- <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
+ <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
{% endfor %}
+ </ul>
<br /><br />
{% endif %}
{% if claimed_tasks %}
- Tasks claimed but still not assigned to you:<br />
+ Tasks claimed but still not assigned to you:<br /><ul>
{% for a_task in claimed_tasks %}
- <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
+ <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
{% endfor %}
+ </ul>
<br /><br />
{% endif %}
diff --git a/templates/task/view.html b/templates/task/view.html
index b0d96c9..c95fe13 100644
--- a/templates/task/view.html
+++ b/templates/task/view.html
@@ -52,17 +52,18 @@
{% if task.tags.count %}
Tags:
{% for tag in task.tags %}
- tag
+ {{tag}}
{% endfor %}
<hr />
{% endif %}
{% if deps %}
- <br />The task has following dependencies.<br />
+ <br />The task has following dependencies.<ul>
{% for dep in deps %}
- <a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br />
+ <li><a href="/task/view/tid={{dep.id}}">{{dep.title}}</a></li>
{% endfor %}
+ </ul>
{% if can_mod_tasks %}
<a href="/task/addtask/tid={{task.id}}">add more dependencies</a>
@@ -72,10 +73,11 @@
{% else %}
{% if subs %}
- The task has following sub tasks.<br />
+ The task has following sub tasks.<ul>
{% for sub in subs %}
- <a href="/task/view/tid={{sub.id}}">{{sub.title}}</a><br />
+ <li><a href="/task/view/tid={{sub.id}}">{{sub.title}}</a></li>
{% endfor %}
+ </ul>
{% if can_mod_tasks %}
<a href="/task/addtask/tid={{task.id}}">add more subtasks</a>