aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2018-06-24 16:19:35 +0800
committerChristian Hesse <mail@eworm.de>2019-01-03 08:15:54 +0100
commit264c7f1180b21d2b68d46f7727a7eb4502b54c82 (patch)
tree6c513db079ab17085e7b6ef52ab40de0b3f0fa92
parentcgit.css: add dynamic age update (diff)
downloadcgit-ch/dynamic-aging.tar.xz
cgit-ch/dynamic-aging.zip
ui-shared: add now-dynamic age to footerch/dynamic-aging
Now ages advance at the client, we can add one to the generated footer. Signed-off-by: Andy Green <andy@warmcat.com> Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--ui-shared.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 4ca7b5b..815cbbb 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -863,7 +863,9 @@ void cgit_print_docend(void)
htmlf("<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit %s</a> "
"(<a href='https://git-scm.com/'>git %s</a>) at ", cgit_version, git_version_string);
html_txt(show_date(time(NULL), 0, cgit_date_mode(DATE_ISO8601)));
- html("</div>\n");
+ html(" (");
+ cgit_print_age(time(NULL), 0, -1);
+ html(" ago)</div>\n");
}
html("</div> <!-- id=cgit -->\n");
html("</body>\n</html>\n");