From: Andy Green Date: Sun, 24 Jun 2018 08:19:35 +0000 (+0800) Subject: ui-shared: add now-dynamic age to footer X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f4f4517bee9ecb92c491bb86aa17009b5645d89;p=cgit ui-shared: add now-dynamic age to footer Now ages advance at the client, we can add one to the generated footer. Signed-off-by: Andy Green Signed-off-by: Christian Hesse --- diff --git a/ui-shared.c b/ui-shared.c index 11aed19..1bac276 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -870,7 +870,9 @@ void cgit_print_docend(void) htmlf("\n"); + html(" ("); + cgit_print_age(time(NULL), 0, -1); + html(" ago)\n"); } html(" \n"); html("\n\n");