summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix-web/view/html.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix-web/view/html.scm b/guix-web/view/html.scm
index 7016ba8..6f9e72f 100644
--- a/guix-web/view/html.scm
+++ b/guix-web/view/html.scm
@@ -57,11 +57,11 @@
(javascript "/js/controller/generations.js" agpl3+)
(javascript "/js/routes.js" agpl3+)))
-(define (script-tag javascript)
(define stylesheets
(list "/css/bootstrap.css"
"/css/guix.css"))
+(define (render-javascript javascript)
`(script (@ (type "text/javascript")
(src ,(javascript-source-uri javascript)))
;; hack to ensure closing </script> tag
@@ -97,7 +97,7 @@
(else ""))))
(define (all-packages)
- (main-layout "Packages" (map script-tag javascripts)))
+ (main-layout "Packages" (map render-javascript javascripts)))
;; This should be moved client-side and the server should just serve
;; the relevant JSON.