Add a statistics page

To show the total number of derivations, and guix revisions.
This commit is contained in:
Christopher Baines 2019-04-08 21:04:12 +01:00
parent 0c72ee747c
commit 6022edd074
2 changed files with 29 additions and 0 deletions

View file

@ -293,6 +293,10 @@
(apply render-html
(view-builds (select-build-stats conn)
(select-builds-with-context conn))))
((GET "statistics")
(apply render-html
(view-statistics (count-guix-revisions conn)
(count-derivations conn))))
((GET "revision" commit-hash)
(apply render-html
(view-revision commit-hash