aboutsummaryrefslogtreecommitdiffstats
path: root/ui-refs.c
diff options
context:
space:
mode:
authorGravatar Jason A. Donenfeld <Jason@zx2c4.com>2014-01-13 12:04:52 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2014-01-14 10:00:07 (JST)
commita5e15537268410e268c7b26aa69d03b347c326c8 (patch)
tree77f42b7f03788d4741bfd60b49719fbc649181ff /ui-refs.c
parent800380dde797ae35d738a644acdae2fabb9a0d44 (diff)
downloadcgit-a5e15537268410e268c7b26aa69d03b347c326c8.zip
cgit-a5e15537268410e268c7b26aa69d03b347c326c8.tar.gz
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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui-refs.c b/ui-refs.c
index c97b0c6..d125459 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -77,7 +77,9 @@ static int print_branch(struct refinfo *ref)
77 if (ref->object->type == OBJ_COMMIT) { 77 if (ref->object->type == OBJ_COMMIT) {
78 cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL, 0); 78 cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL, 0);
79 html("</td><td>"); 79 html("</td><td>");
80 cgit_open_filter(ctx.repo->email_filter, info->author_email);
80 html_txt(info->author); 81 html_txt(info->author);
82 cgit_close_filter(ctx.repo->email_filter);
81 html("</td><td colspan='2'>"); 83 html("</td><td colspan='2'>");
82 cgit_print_age(info->commit->date, -1, NULL); 84 cgit_print_age(info->commit->date, -1, NULL);
83 } else { 85 } else {
@@ -154,10 +156,15 @@ static int print_tag(struct refinfo *ref)
154 cgit_object_link(obj); 156 cgit_object_link(obj);
155 html("</td><td>"); 157 html("</td><td>");
156 if (info) { 158 if (info) {
157 if (info->tagger) 159 if (info->tagger) {
160 cgit_open_filter(ctx.repo->email_filter, info->tagger_email);
158 html_txt(info->tagger); 161 html_txt(info->tagger);
162 cgit_close_filter(ctx.repo->email_filter);
163 }
159 } else if (ref->object->type == OBJ_COMMIT) { 164 } else if (ref->object->type == OBJ_COMMIT) {
165 cgit_open_filter(ctx.repo->email_filter, ref->commit->author_email);
160 html_txt(ref->commit->author); 166 html_txt(ref->commit->author);
167 cgit_close_filter(ctx.repo->email_filter);
161 } 168 }
162 html("</td><td colspan='2'>"); 169 html("</td><td colspan='2'>");
163 if (info) { 170 if (info) {