mirror of
https://git.zx2c4.com/cgit
synced 2025-08-01 16:44:44 +02:00
filter: add support for email filter
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
800380dde7
commit
a5e1553726
9 changed files with 47 additions and 2 deletions
|
@ -77,7 +77,9 @@ static int print_branch(struct refinfo *ref)
|
|||
if (ref->object->type == OBJ_COMMIT) {
|
||||
cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL, 0);
|
||||
html("</td><td>");
|
||||
cgit_open_filter(ctx.repo->email_filter, info->author_email);
|
||||
html_txt(info->author);
|
||||
cgit_close_filter(ctx.repo->email_filter);
|
||||
html("</td><td colspan='2'>");
|
||||
cgit_print_age(info->commit->date, -1, NULL);
|
||||
} else {
|
||||
|
@ -154,10 +156,15 @@ static int print_tag(struct refinfo *ref)
|
|||
cgit_object_link(obj);
|
||||
html("</td><td>");
|
||||
if (info) {
|
||||
if (info->tagger)
|
||||
if (info->tagger) {
|
||||
cgit_open_filter(ctx.repo->email_filter, info->tagger_email);
|
||||
html_txt(info->tagger);
|
||||
cgit_close_filter(ctx.repo->email_filter);
|
||||
}
|
||||
} else if (ref->object->type == OBJ_COMMIT) {
|
||||
cgit_open_filter(ctx.repo->email_filter, ref->commit->author_email);
|
||||
html_txt(ref->commit->author);
|
||||
cgit_close_filter(ctx.repo->email_filter);
|
||||
}
|
||||
html("</td><td colspan='2'>");
|
||||
if (info) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue