mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 10:04:32 +02:00
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>
This commit is contained in:
parent
00ecfaadea
commit
3c9e68ed67
1 changed files with 3 additions and 1 deletions
|
@ -878,7 +878,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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue