Add footer with page creation time and cgit version on all pages

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli 2008-05-03 11:07:41 +02:00
parent c6078b8b00
commit aa3c4486b4
2 changed files with 9 additions and 0 deletions

View file

@ -443,6 +443,9 @@ void cgit_print_docstart(struct cgit_context *ctx)
void cgit_print_docend()
{
html("</div><div class='footer'>generated ");
cgit_print_date(time(NULL), FMT_LONGDATE);
htmlf(" by cgit %s", cgit_version);
html("</div>\n</body>\n</html>\n");
}