now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
authornishanth
Wed, 03 Mar 2010 05:14:56 +0530
changeset 187 72d57f59a561
parent 186 c083ebb6f8d7
child 188 e4e73a4dd720
now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
templates/index.html
templates/task/view.html
--- a/templates/index.html	Wed Mar 03 04:45:38 2010 +0530
+++ b/templates/index.html	Wed Mar 03 05:14:56 2010 +0530
@@ -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 %}
 
--- a/templates/task/view.html	Wed Mar 03 04:45:38 2010 +0530
+++ b/templates/task/view.html	Wed Mar 03 05:14:56 2010 +0530
@@ -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>