Iterate the log viewing
Replace the Guile-side HTML escaping with a less complete, but hopefully faster PostgreSQL side HTML escaping approach. Also, allow reading part of the log, by default, the last 1,000,000 characters, as this should render quickly.
This commit is contained in:
parent
afa86d6115
commit
54b9922466
3 changed files with 70 additions and 11 deletions
|
|
@ -975,7 +975,7 @@
|
|||
'())))))
|
||||
jobs-and-events)))))))))
|
||||
|
||||
(define (view-job job-id log)
|
||||
(define (view-job job-id query-parameters log)
|
||||
(layout
|
||||
#:body
|
||||
`(,(header)
|
||||
|
|
@ -989,7 +989,28 @@
|
|||
(div
|
||||
(@ (class "row"))
|
||||
(div
|
||||
(pre ,log)))))))
|
||||
(@ (class "col-md-12"))
|
||||
(div
|
||||
(@ (class "well"))
|
||||
(form
|
||||
(@ (method "get")
|
||||
(action "")
|
||||
(class "form-horizontal"))
|
||||
,(form-horizontal-control
|
||||
"Characters" query-parameters
|
||||
#:help-text "Return at most this many characters.")
|
||||
,(form-horizontal-control
|
||||
"Start character" query-parameters
|
||||
#:help-text "Start reading the log from this character.")
|
||||
(div (@ (class "form-group form-group-lg"))
|
||||
(div (@ (class "col-sm-offset-2 col-sm-10"))
|
||||
(button (@ (type "submit")
|
||||
(class "btn btn-lg btn-primary"))
|
||||
"Update log")))))))
|
||||
(div
|
||||
(@ (class "row"))
|
||||
(div
|
||||
(pre (raw ,log))))))))
|
||||
|
||||
(define (view-derivation derivation derivation-inputs derivation-outputs
|
||||
builds)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue