diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-13 04:04:52 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-14 02:00:07 +0100 |
commit | a5e15537268410e268c7b26aa69d03b347c326c8 (patch) | |
tree | 77f42b7f03788d4741bfd60b49719fbc649181ff /ui-refs.c | |
parent | 800380dde797ae35d738a644acdae2fabb9a0d44 (diff) | |
download | cgit-a5e15537268410e268c7b26aa69d03b347c326c8.tar.gz cgit-a5e15537268410e268c7b26aa69d03b347c326c8.tar.xz |
filter: add support for email filter
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-refs.c')
-rw-r--r-- | ui-refs.c | 9 |
1 files changed, 8 insertions, 1 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) { |