Views: Cleanup
This commit is contained in:
parent
3e23b4a5bf
commit
ffc062727a
1 changed files with 3 additions and 13 deletions
14
lib/views.ml
14
lib/views.ml
|
@ -244,23 +244,13 @@ let viz_not_found ~target =
|
||||||
text-align: center;\
|
text-align: center;\
|
||||||
"]
|
"]
|
||||||
[ txtf "%s" title ];
|
[ txtf "%s" title ];
|
||||||
(* H.p [
|
|
||||||
* H.txt @@ Fmt.str "You requested the page %s" target
|
|
||||||
* ]; *)
|
|
||||||
]
|
]
|
||||||
in
|
in
|
||||||
let static_css = static_css :: [ Tyxml.Html.Unsafe.data "\
|
let static_css = static_css :: [ Tyxml.Html.Unsafe.data "\
|
||||||
body {\
|
body { background: rgb(191,191,191); }\
|
||||||
background: rgb(191,191,191);\
|
|
||||||
}\
|
|
||||||
"]
|
"]
|
||||||
in
|
in
|
||||||
let body =
|
let body = [ H.div content ] in
|
||||||
let style = H.a_style "\
|
|
||||||
"
|
|
||||||
in
|
|
||||||
[ H.div ~a:[ style ] content ]
|
|
||||||
in
|
|
||||||
H.html
|
H.html
|
||||||
(H.head (H.title (H.txt title))
|
(H.head (H.title (H.txt title))
|
||||||
[H.style ~a:H.[a_mime_type "text/css"] static_css])
|
[H.style ~a:H.[a_mime_type "text/css"] static_css])
|
||||||
|
|
Loading…
Reference in a new issue