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:
Vincent Ambo 2022-06-22 00:11:28 +03:00 committed by tazjin
parent 45e7f2c388
commit 807e7ec55f

View file

@ -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("&nbsp;");
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);