commit 49632cd3b1c81b19229e3a4a523e411d29cd8827 from: Omar Polo date: Tue Jan 10 15:12:05 2023 UTC gotwebd: make commit page more like `got log' / tog - drop the "diff commit1 commit2" header; it's already showed in the body of the diff. - hide the tree id (not that useful to show.) - show the committer if different from the author. - use From/Via for Committer/Author. discussed with jamsek, stsp, tracey ok jamsek tracey commit - ee0b2e502f3be1d01835e96bdcd38afed67429f7 commit + 49632cd3b1c81b19229e3a4a523e411d29cd8827 blob - 6a5d354e145ae61a1ae18f8936f735573508bd28 blob + c8f7a859f74578199b84566a25e7a1b31a3717d9 --- gotwebd/files/htdocs/gotwebd/gotweb.css +++ gotwebd/files/htdocs/gotwebd/gotweb.css @@ -223,20 +223,6 @@ body { padding-bottom: 2px; } .header_commit { - float: left; - width: 72%; - padding-top: 2px; - padding-bottom: 2px; -} -#header_diff_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 2px; - padding-bottom: 2px; -} -#header_diff { float: left; width: 72%; padding-top: 2px; blob - db75509aef099d948964c7a1a20115f27e7e63ed blob + 3265456df058f025cd052df66cbffdcff9b45932 --- gotwebd/pages.tmpl +++ gotwebd/pages.tmpl @@ -708,18 +708,14 @@ gotweb_render_age(struct template *tp, time_t time, in
-
Diff:
-
- {{ rc->parent_id }} -
- {{ rc->commit_id }} -
Commit:
{{ rc->commit_id }}
-
Tree:
-
{{ rc->tree_id }}
-
Author:
+
From:
{{ rc->author }}
+ {{ if strcmp(rc->committer, rc->author) != 0 }} +
Via:
+
{{ rc->committer }}
+ {{ end }}
Date:
{{ render gotweb_render_age(tp, rc->committer_time, TM_LONG) }}