diff options
author | Andy Green <andy@warmcat.com> | 2018-06-24 08:19:35 +0000 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-12-19 16:57:28 +0000 |
commit | 8f4f4517bee9ecb92c491bb86aa17009b5645d89 (patch) | |
tree | 833f4749577b6de30ff7c7b0ea5b3368d65007b4 | |
parent | 907134b7a29177cb45aa461c549c004b1ae875af (diff) | |
download | cgit-8f4f4517bee9ecb92c491bb86aa17009b5645d89.tar cgit-8f4f4517bee9ecb92c491bb86aa17009b5645d89.tar.gz cgit-8f4f4517bee9ecb92c491bb86aa17009b5645d89.zip |
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 <andy@warmcat.com>
Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r-- | ui-shared.c | 4 |
1 files changed, 3 insertions, 1 deletions
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("<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"); |