mirror of
https://git.zx2c4.com/cgit
synced 2025-06-21 01:25:46 +02:00
Introduce noplainemail option to hide email adresses from spambots
Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
This commit is contained in:
parent
286a905842
commit
2f56e390f0
7 changed files with 22 additions and 7 deletions
12
ui-commit.c
12
ui-commit.c
|
@ -40,15 +40,19 @@ void cgit_print_commit(char *hex)
|
|||
html("<table summary='commit info' class='commit-info'>\n");
|
||||
html("<tr><th>author</th><td>");
|
||||
html_txt(info->author);
|
||||
html(" ");
|
||||
html_txt(info->author_email);
|
||||
if (!ctx.cfg.noplainemail) {
|
||||
html(" ");
|
||||
html_txt(info->author_email);
|
||||
}
|
||||
html("</td><td class='right'>");
|
||||
cgit_print_date(info->author_date, FMT_LONGDATE, ctx.cfg.local_time);
|
||||
html("</td></tr>\n");
|
||||
html("<tr><th>committer</th><td>");
|
||||
html_txt(info->committer);
|
||||
html(" ");
|
||||
html_txt(info->committer_email);
|
||||
if (!ctx.cfg.noplainemail) {
|
||||
html(" ");
|
||||
html_txt(info->committer_email);
|
||||
}
|
||||
html("</td><td class='right'>");
|
||||
cgit_print_date(info->committer_date, FMT_LONGDATE, ctx.cfg.local_time);
|
||||
html("</td></tr>\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue