summaryrefslogtreecommitdiff
path: root/templates/todolists/list.html
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-05 13:26:48 -0700
committereliott <eliott@cactuswax.net>2008-04-05 13:26:48 -0700
commit1bac739c5cbf13163072d6929c43f686c4a828c9 (patch)
treefcd08ea803f82ce5810e4ecb281c56d46f05a8a2 /templates/todolists/list.html
parent5f7ea45989ec9a095d6b4b2b1c06e5f9f6630faf (diff)
Implemented todolist javascript sorting
Diffstat (limited to 'templates/todolists/list.html')
-rw-r--r--templates/todolists/list.html36
1 files changed, 20 insertions, 16 deletions
diff --git a/templates/todolists/list.html b/templates/todolists/list.html
index 980328ab..6edf1324 100644
--- a/templates/todolists/list.html
+++ b/templates/todolists/list.html
@@ -9,22 +9,26 @@
{% endif %}
<h2 class="title">Package ToDo lists</h2>
<table class="results" width="100%">
- <tr>
- <th>Name</th>
- <th>Creation Date</th>
- <th>Creator</th>
- <th>Description</th>
- <th>Status</th>
- </tr>
- {% for list in lists %}
- <tr class="{% cycle pkgr2,pkgr1 %}">
- <td style="white-space:nowrap"><a href="/todo/{{ list.id }}/">{{ list.name }}</a></td>
- <td>{{ list.date_added }}</td>
- <td>{{ list.creator.get_full_name }}</td>
- <td>{{ list.description }}</td>
- <td>{% if list.complete %}<span style="color:blue">Complete</span>{% else %}<span style="color:red">Incomplete</span>{% endif %}</td>
- </tr>
- {% endfor %}
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Creation Date</th>
+ <th>Creator</th>
+ <th>Description</th>
+ <th>Status</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for list in lists %}
+ <tr class="{% cycle pkgr2,pkgr1 %}">
+ <td style="white-space:nowrap"><a href="/todo/{{ list.id }}/">{{ list.name }}</a></td>
+ <td>{{ list.date_added }}</td>
+ <td>{{ list.creator.get_full_name }}</td>
+ <td>{{ list.description }}</td>
+ <td>{% if list.complete %}<span style="color:blue">Complete</span>{% else %}<span style="color:red">Incomplete</span>{% endif %}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
</table>
</div>
{% endblock %}