[OCaml] Mobile-friendly clone of cgit.
Respect viewport scaling on mobile devices.
lib/views.ml
@@ -54,6 +54,7 @@
54
54
head []
55
55
[
56
56
title [] "%s" page_title;
57
Added:
meta [ name "viewport"; content "width=device-width, initial_scale=1" ];
57
58
link [ rel "stylesheet"; href "/static/styles.css" ];
58
59
link [ rel "icon"; type_ "image/x-icon"; href "/static/git_icon.svg" ];
59
60
]
@@ -80,8 +81,7 @@
80
81
let repos =
81
82
Sys.readdir config.git_project_root
82
83
|> Array.to_list
83
Removed:
|> List.filter (fun name ->
84
Removed:
not (name.[0] = '.'))
84
Added:
|> List.filter (fun name -> not (name.[0] = '.'))
85
85
|> List.sort String.compare
86
86
in
87
87
let li_of_repo repo =