diff options
author | David Thompson <dthompson2@worcester.edu> | 2014-08-13 20:23:54 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2014-08-13 20:23:54 -0400 |
commit | a896eb837e6174a94affcb768150c17c85c9e8a2 (patch) | |
tree | 148948da6fd691e4b9f230fe55582242997b5e7f /css | |
parent | 39165a798408bc76e692e7c8a546e93fd550231d (diff) |
Add column sorting to package table.
* css/guix.css: New file.
* guix-web/view.scm (main-layout): Include guix.css.
* js/guix-packages.js (guix.Sorter.prototype.reverse): New method.
(guix.controller.sorter): Make property.
(guix.controller.columns): New variable.
(guix.controller.prototype.paginate): Use sorter property.
(guix.controller.prototype.sortBy): New method.
(guix.view): Render column sorting UI.
Diffstat (limited to 'css')
-rw-r--r-- | css/guix.css | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/css/guix.css b/css/guix.css new file mode 100644 index 0000000..038a9d0 --- /dev/null +++ b/css/guix.css @@ -0,0 +1,11 @@ +.sort-descend:after { + content: '▼' +} + +.sort-ascend:after { + content: '▲' +} + +.sorter { + cursor: pointer; +} |