commit 4ba8b606a0a1ebe0d9a9daf6909948315c313d36 from: Omar Polo date: Fri Dec 01 18:39:38 2023 UTC gotwebd: make blame view work in text browsers While here pad line numbers with spaces instead of zeroes to match the blob view. commit - 2faeb3c616089a458cbffa3a46b9a15c484f0e80 commit + 4ba8b606a0a1ebe0d9a9daf6909948315c313d36 blob - da2a3df486a9f9af27f183c0fc1096390dbc3027 blob + c6f473ced0d7b7454f210dfaa119b63cd96d2ba4 --- gotwebd/files/htdocs/gotwebd/gotweb.css +++ gotwebd/files/htdocs/gotwebd/gotweb.css @@ -319,15 +319,11 @@ header.subtitle h2 { width: 60px; padding-right: 20px; } -.blob_code { +.blame_code, .blob_code { /* fixes the width of the first tab */ display: inline-block; } -.blame_number, .blame_hash, .blame_date, .blame_author, .blame_code { - display: inline-block; - vertical-align: middle; -} -.blame_wrapper:target, .blob_line:target { +.blame_line:target, .blob_line:target { background-color: Khaki; } .blame_number, .blob_number { blob - 86d2ea107d890280aab7d4d736978e4921878c8e blob + bac391d8a08e90c6c0b28bba4f935029591ab0c8 --- gotwebd/pages.tmpl +++ gotwebd/pages.tmpl @@ -1102,16 +1102,19 @@ nextsep(char *s, char **t) if (s) *s = '\0'; !} -
-
{{ printf "%.*d", lprec, lcur }}
-
+
+ {{ printf "%*d ", lprec, lcur }} + {{ printf "%.8s", bline->id_str }} -
-
{{ bline->datebuf }}
-
{{ printf "%.9s", committer }}
-
{{ line }}
+ + {{" "}} + {{ bline->datebuf }} + {{" "}} + {{ printf "%.9s", committer }} + {{" "}} + {{ line }}
{{ end }}