diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-14 00:24:40 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-14 10:00:07 (JST) |
commit | 786609bd36c07b85dbf905fc8c36eba7132122d7 (patch) | |
tree | 03d3a49c01b89e7122bdde4ad088fc225a819e7b /ui-commit.c | |
parent | e942a1622bddf3338096393c3906c1adc871d198 (diff) | |
download | cgit-786609bd36c07b85dbf905fc8c36eba7132122d7.zip cgit-786609bd36c07b85dbf905fc8c36eba7132122d7.tar.gz |
filter: add page source to email filter
Since the email filter is called from lots of places, the script might
benefit from knowing the origin. That way it can modify its contents
and/or size depending.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-commit.c')
-rw-r--r-- | ui-commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-commit.c b/ui-commit.c index bd14ef0..c48bfe8 100644 --- a/ui-commit.c +++ b/ui-commit.c | |||
@@ -44,7 +44,7 @@ void cgit_print_commit(char *hex, const char *prefix) | |||
44 | cgit_print_diff_ctrls(); | 44 | cgit_print_diff_ctrls(); |
45 | html("<table summary='commit info' class='commit-info'>\n"); | 45 | html("<table summary='commit info' class='commit-info'>\n"); |
46 | html("<tr><th>author</th><td>"); | 46 | html("<tr><th>author</th><td>"); |
47 | cgit_open_filter(ctx.repo->email_filter, info->author_email); | 47 | cgit_open_filter(ctx.repo->email_filter, info->author_email, "commit"); |
48 | html_txt(info->author); | 48 | html_txt(info->author); |
49 | if (!ctx.cfg.noplainemail) { | 49 | if (!ctx.cfg.noplainemail) { |
50 | html(" "); | 50 | html(" "); |
@@ -55,7 +55,7 @@ void cgit_print_commit(char *hex, const char *prefix) | |||
55 | cgit_print_date(info->author_date, FMT_LONGDATE, ctx.cfg.local_time); | 55 | cgit_print_date(info->author_date, FMT_LONGDATE, ctx.cfg.local_time); |
56 | html("</td></tr>\n"); | 56 | html("</td></tr>\n"); |
57 | html("<tr><th>committer</th><td>"); | 57 | html("<tr><th>committer</th><td>"); |
58 | cgit_open_filter(ctx.repo->email_filter, info->committer_email); | 58 | cgit_open_filter(ctx.repo->email_filter, info->committer_email, "commit"); |
59 | html_txt(info->committer); | 59 | html_txt(info->committer); |
60 | if (!ctx.cfg.noplainemail) { | 60 | if (!ctx.cfg.noplainemail) { |
61 | html(" "); | 61 | html(" "); |