From a896eb837e6174a94affcb768150c17c85c9e8a2 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 13 Aug 2014 20:23:54 -0400 Subject: 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. --- css/guix.css | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 css/guix.css (limited to 'css') 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; +} -- cgit v1.2.3