From 3c9e68ed67b1a62de573470622d32108038e5301 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 24 Jun 2018 16:19:35 +0800 Subject: 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 --- ui-shared.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui-shared.c b/ui-shared.c index baea6f2..d319a8d 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -878,7 +878,9 @@ void cgit_print_docend(void) htmlf("\n"); + html(" ("); + cgit_print_age(time(NULL), 0, -1); + html(" ago)\n"); } html(" \n"); html("\n\n"); -- cgit v1.2.3-24-g4f1b