From: Charles Holbrow Date: Mon, 14 Jan 2013 23:53:31 +0000 (-0500) Subject: Adding sorter arrows for course list. #37 Next: filtering X-Git-Tag: release-20150131~561 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=728974657454697b48a49398cda345e81b2d55e2;p=oweals%2Fkarmaworld.git Adding sorter arrows for course list. #37 Next: filtering --- diff --git a/karmaworld/assets/css/table_sort.css b/karmaworld/assets/css/table_sort.css new file mode 100644 index 0000000..41bcae3 --- /dev/null +++ b/karmaworld/assets/css/table_sort.css @@ -0,0 +1,14 @@ +table.tablesorter thead tr .header { + background-image: url(/static/img/bg.gif); + background-repeat: no-repeat; + background-position: center right; + cursor: pointer; +} + +table.tablesorter thead tr .headerSortUp { + background-image: url(/static/img/asc.gif); +} + +table.tablesorter thead tr .headerSortDown { + background-image: url(/static/img/desc.gif); +} \ No newline at end of file diff --git a/karmaworld/assets/img/asc.gif b/karmaworld/assets/img/asc.gif new file mode 100644 index 0000000..7415786 Binary files /dev/null and b/karmaworld/assets/img/asc.gif differ diff --git a/karmaworld/assets/img/bg.gif b/karmaworld/assets/img/bg.gif new file mode 100644 index 0000000..fac668f Binary files /dev/null and b/karmaworld/assets/img/bg.gif differ diff --git a/karmaworld/assets/img/desc.gif b/karmaworld/assets/img/desc.gif new file mode 100644 index 0000000..3b30b3c Binary files /dev/null and b/karmaworld/assets/img/desc.gif differ diff --git a/karmaworld/templates/courses/course_list.html b/karmaworld/templates/courses/course_list.html index 29d67bc..d2db158 100644 --- a/karmaworld/templates/courses/course_list.html +++ b/karmaworld/templates/courses/course_list.html @@ -8,6 +8,7 @@ {% block pagestyle %} + {% endblock %} {% block pagescripts %}