X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/502d57596e645ec91bb9b8ca62833cdb0de4a3b1..2f56e390f04fe6975b75e512c1436ef173e4aafe:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index 4bbb391..9fdb8ee 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -10,6 +10,7 @@ #include "html.h" #include "ui-shared.h" #include "ui-diff.h" +#include "ui-log.h" void cgit_print_commit(char *hex) { @@ -34,20 +35,26 @@ void cgit_print_commit(char *hex) } info = cgit_parse_commit(commit); + load_ref_decorations(); + 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); + 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); + cgit_print_date(info->committer_date, FMT_LONGDATE, ctx.cfg.local_time); html(" |
| commit | "); tmp = sha1_to_hex(commit->object.sha1); @@ -87,6 +94,7 @@ void cgit_print_commit(char *hex) html(" | |