Views: Cleanup
This commit is contained in:
parent
3e23b4a5bf
commit
ffc062727a
1 changed files with 3 additions and 13 deletions
16
lib/views.ml
16
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
|
|
||||||
let body =
|
|
||||||
let style = H.a_style "\
|
|
||||||
"
|
|
||||||
in
|
|
||||||
[ H.div ~a:[ style ] content ]
|
|
||||||
in
|
in
|
||||||
|
let body = [ H.div 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