X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/dfc4c82aad1ca990544441ce8b90e99d32f0d82d..e34a3b5adc00255f8acb7d674e5fdadef2ac80f7:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index 41ce70e..f5b0ae5 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -35,20 +35,24 @@ void cgit_print_commit(char *hex) } info = cgit_parse_commit(commit); - load_ref_decorations(); + load_ref_decorations(DECORATE_FULL_REFS); html("
| author | "); html_txt(info->author); - html(" "); - html_txt(info->author_email); + if (!ctx.cfg.noplainemail) { + html(" "); + html_txt(info->author_email); + } html(" | "); cgit_print_date(info->author_date, FMT_LONGDATE, ctx.cfg.local_time); html(" |
|---|---|---|
| committer | "); html_txt(info->committer); - html(" "); - html_txt(info->committer_email); + if (!ctx.cfg.noplainemail) { + html(" "); + html_txt(info->committer_email); + } html(" | "); cgit_print_date(info->committer_date, FMT_LONGDATE, ctx.cfg.local_time); html(" |