Sortable tables
This commit is contained in:
parent
e9f9b6a303
commit
5bcdaeabed
2
TODO.md
2
TODO.md
|
@ -7,8 +7,6 @@ Want to be able to see packages with build problems, and packages without build
|
||||||
Some way of getting a list of all packages
|
Some way of getting a list of all packages
|
||||||
- "you should have the "285 package in the index" have a link like "hiding main-distribution (show)""
|
- "you should have the "285 package in the index" have a link like "hiding main-distribution (show)""
|
||||||
|
|
||||||
Want to be able to sort result tables
|
|
||||||
|
|
||||||
you should be able to specify git repos over http/https
|
you should be able to specify git repos over http/https
|
||||||
you should be able to specify subdirs in git repos
|
you should be able to specify subdirs in git repos
|
||||||
you should check the existence of repos/github repos/urls/etc via XHR
|
you should check the existence of repos/github repos/urls/etc via XHR
|
||||||
|
|
|
@ -50,8 +50,7 @@
|
||||||
(link ((rel "stylesheet") (href "/bootstrap/css/bootstrap.min.css") (type "text/css")))
|
(link ((rel "stylesheet") (href "/bootstrap/css/bootstrap.min.css") (type "text/css")))
|
||||||
(link ((rel "stylesheet") (href "/style.css") (type "text/css")))
|
(link ((rel "stylesheet") (href "/style.css") (type "text/css")))
|
||||||
,@(for/list ((sheet (bootstrap-page-stylesheets)))
|
,@(for/list ((sheet (bootstrap-page-stylesheets)))
|
||||||
`(link ((rel "stylesheet") (href ,sheet) (type "text/css"))))
|
`(link ((rel "stylesheet") (href ,sheet) (type "text/css")))))
|
||||||
(script ((type "text/javascript") (src "/site.js"))))
|
|
||||||
(body
|
(body
|
||||||
(nav ((class "navbar navbar-inverse navbar-fixed-top") (role "navigation"))
|
(nav ((class "navbar navbar-inverse navbar-fixed-top") (role "navigation"))
|
||||||
(div ((class "container"))
|
(div ((class "container"))
|
||||||
|
@ -72,9 +71,10 @@
|
||||||
,title-element
|
,title-element
|
||||||
,@body-contents)
|
,@body-contents)
|
||||||
|
|
||||||
(script ((type "text/javascript")
|
(script ((type "text/javascript") (src "/jquery.min.js")))
|
||||||
(src "https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js")))
|
(script ((type "text/javascript") (src "/jquery.tablesorter.min.js")))
|
||||||
(script ((type "text/javascript") (src "/bootstrap/js/bootstrap.min.js")))
|
(script ((type "text/javascript") (src "/bootstrap/js/bootstrap.min.js")))
|
||||||
|
(script ((type "text/javascript") (src "/site.js")))
|
||||||
,@(for/list ((script (bootstrap-page-scripts)))
|
,@(for/list ((script (bootstrap-page-scripts)))
|
||||||
`(script ((type "text/javascript") (src ,script))))))))
|
`(script ((type "text/javascript") (src ,script))))))))
|
||||||
|
|
||||||
|
|
|
@ -411,10 +411,12 @@
|
||||||
(define now (/ (current-inexact-milliseconds) 1000))
|
(define now (/ (current-inexact-milliseconds) 1000))
|
||||||
`(table
|
`(table
|
||||||
((class "packages sortable"))
|
((class "packages sortable"))
|
||||||
|
(thead
|
||||||
(tr
|
(tr
|
||||||
(th "Package")
|
(th "Package")
|
||||||
(th "Description")
|
(th "Description")
|
||||||
(th "Build"))
|
(th "Build")))
|
||||||
|
(tbody
|
||||||
,@(maybe-splice (null? package-names)
|
,@(maybe-splice (null? package-names)
|
||||||
`(tr (td ((colspan "3"))
|
`(tr (td ((colspan "3"))
|
||||||
(div ((class "alert alert-info"))
|
(div ((class "alert alert-info"))
|
||||||
|
@ -455,7 +457,7 @@
|
||||||
`(td ((class "build_green"))
|
`(td ((class "build_green"))
|
||||||
,(buildhost-link (@ pkg build success-log) "succeeds"))]
|
,(buildhost-link (@ pkg build success-log) "succeeds"))]
|
||||||
[else
|
[else
|
||||||
`(td)])))))
|
`(td)]))))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
|
4
static/jquery.min.js
vendored
Normal file
4
static/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4
static/jquery.tablesorter.min.js
vendored
Normal file
4
static/jquery.tablesorter.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,3 @@
|
||||||
|
$(document).ready(function () {
|
||||||
|
$("table.sortable").tablesorter();
|
||||||
|
});
|
|
@ -94,3 +94,7 @@ input#new_version {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Sortable tables */
|
||||||
|
th.headerSortUp::after { content: " ▲"; }
|
||||||
|
th.headerSortDown::after { content: " ▼"; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user