diff options
Diffstat (limited to 'guix-data-service/web')
-rw-r--r-- | guix-data-service/web/controller.scm | 9 | ||||
-rw-r--r-- | guix-data-service/web/view/html.scm | 29 |
2 files changed, 0 insertions, 38 deletions
diff --git a/guix-data-service/web/controller.scm b/guix-data-service/web/controller.scm index 5d0a651..a589941 100644 --- a/guix-data-service/web/controller.scm +++ b/guix-data-service/web/controller.scm @@ -822,15 +822,6 @@ (all-git-repositories conn)))))) (('GET "builds") (delegate-to build-controller)) - (('GET "statistics") - (letpar& ((guix-revisions-count - (with-resource-from-pool (connection-pool) conn count-guix-revisions)) - (count-derivations - (with-resource-from-pool (connection-pool) conn count-derivations))) - - (render-html - #:sxml (view-statistics guix-revisions-count - count-derivations)))) (('GET "metrics") (parameterize ((resource-pool-default-timeout 6)) diff --git a/guix-data-service/web/view/html.scm b/guix-data-service/web/view/html.scm index ab09644..98766de 100644 --- a/guix-data-service/web/view/html.scm +++ b/guix-data-service/web/view/html.scm @@ -43,7 +43,6 @@ index readme general-not-found - view-statistics view-builds view-derivation view-formatted-derivation @@ -305,10 +304,6 @@ (style "margin-top: 1.3rem;") (role "group")) (a (@ (class "btn btn-lg btn-default") - (href "/statistics") - (role "button")) - "Statistics") - (a (@ (class "btn btn-lg btn-default") (href "/jobs") (role "button")) "Jobs")))) @@ -335,30 +330,6 @@ branches-with-most-recent-commits))))))) git-repositories-and-revisions))))) -(define (view-statistics guix-revisions-count derivations-count) - (define page-header "Statistics") - (layout - #:title - page-header - #:body - `(,(header) - (div - (@ (class "container")) - (div - (@ (class "row")) - (div - (@ (class "col-md-6")) - (h3 "Guix revisions") - (strong (@ (class "text-center") - (style "font-size: 2em; display: block;")) - ,guix-revisions-count)) - (div - (@ (class "col-md-6")) - (h3 "Derivations") - (strong (@ (class "text-center") - (style "font-size: 2em; display: block;")) - ,derivations-count))))))) - (define (table/branches-with-most-recent-commits git-repository-id branches-with-most-recent-commits) `(table |