style(3p/cgit): move commit decorations left of subject
the commit decoration layout is designed for situations where very few commits have decorations, but every depot commit has a revision. putting these on the left of the commit subject looks a lot more reasonable. ideally we would actually put them in the table as a column, but that'd be a much larger change. Change-Id: I0b44dbef36b64b183d66278d7ab7e4ff17554684 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5892 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
45e7f2c388
commit
807e7ec55f
1 changed files with 2 additions and 1 deletions
3
third_party/cgit/ui-log.c
vendored
3
third_party/cgit/ui-log.c
vendored
|
@ -252,9 +252,10 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
|
|||
strlcpy(info->subject + i, wrap_symbol, subject_len - i + 1);
|
||||
}
|
||||
}
|
||||
show_commit_decorations(commit);
|
||||
html(" ");
|
||||
cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head,
|
||||
oid_to_hex(&commit->object.oid), ctx.qry.vpath);
|
||||
show_commit_decorations(commit);
|
||||
html("</td><td>");
|
||||
cgit_open_filter(ctx.repo->email_filter, info->author_email, "log");
|
||||
html_txt(info->author);
|
||||
|
|
Loading…
Reference in a new issue