summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-03-29 17:05:43 -0700
committereliott <eliott@cactuswax.net>2008-03-29 17:05:43 -0700
commit8a58ef43d89335fc8ea6eaf91ac9a94bbef45ade (patch)
tree91e1416e3121e7757bc4600cb078a9d83b5683ee /templates
parent37d97cfff830b4dcce5a74bb95d0b203a2e865e9 (diff)
Fix for sort zebra stripingrelease_2008032902
Diffstat (limited to 'templates')
-rw-r--r--templates/todolists/view.html21
1 files changed, 12 insertions, 9 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index 692999db..c0c0dc90 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -5,26 +5,29 @@
<script type="text/javascript">
$(document).ready(
function(){
- $("#todotable").tablesorter();
+ $("#todotable").tablesorter({widgets: ['zebra']});
}
);
</script>
<style type="text/css">
table#todotable thead tr .header {
- background-image: url('/media/bg.gif');
- background-repeat: no-repeat;
- background-position: center right;
- cursor: pointer;
+ background-image: url('/media/bg.gif');
+ background-repeat: no-repeat;
+ background-position: center right;
+ cursor: pointer;
}
table#todotable thead tr .headerSortUp {
- background-image: url('/media/asc.gif');
+ background-image: url('/media/asc.gif');
}
table#todotable thead tr .headerSortDown {
- background-image: url('/media/desc.gif');
+ background-image: url('/media/desc.gif');
}
-table#todotable thead tr .headerSortDown, table.todotable thead tr .headerSortUp {
+table#todotable thead tr .headerSortDown, table#todotable thead tr .headerSortUp {
background-color: #8dbdd8;
}
+table#todotable tbody tr.odd {
+ background-color: #eee4cb;
+}
</style>
{% endblock %}
{% block content %}
@@ -42,7 +45,7 @@ table#todotable thead tr .headerSortDown, table.todotable thead tr .headerSortUp
</thead>
<tbody>
{% for pkg in pkgs %}
- <tr class="{% cycle pkgr1,pkgr2 %}">
+ <tr class="{% cycle even,odd %}">
<td><a href="/packages/{{ pkg.pkg.id }}/">{{ pkg.pkg.id }}</a></td>
<td>{{ pkg.pkg.repo.name }}</td>
<td>{{ pkg.pkg.pkgname }}</td>