diff options
author | eliott <eliott@cactuswax.net> | 2008-04-05 13:26:48 -0700 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-04-05 13:26:48 -0700 |
commit | 1bac739c5cbf13163072d6929c43f686c4a828c9 (patch) | |
tree | fcd08ea803f82ce5810e4ecb281c56d46f05a8a2 /templates/todolists/list.html | |
parent | 5f7ea45989ec9a095d6b4b2b1c06e5f9f6630faf (diff) |
Implemented todolist javascript sorting
Diffstat (limited to 'templates/todolists/list.html')
-rw-r--r-- | templates/todolists/list.html | 36 |
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 %} |