Author: Lars Hjemli <hjemli@gmail.com>
Add footer with page creation time and cgit version on all pages Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.css | 6 ++++++ ui-shared.c | 3 +++
diff --git a/cgit.css b/cgit.css index d57722c47086bbae97c26d3dd227ee7aaebb08c9..fac5f855fdcd129dd1a001b3ca8ce96a36f0a4d9 100644 --- a/cgit.css +++ b/cgit.css @@ -447,3 +447,9 @@ span.age-years { color: #bbb; } +div.footer { + margin-top: 0.5em; + text-align: center; + font-size: 80%; + color: #ccc; +} diff --git a/ui-shared.c b/ui-shared.c index f36635495b7fdb2671af6ba949b31e9a9b4cdd8c..44269a7677cff9b5d24b14b3b54d90defe573e63 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -443,6 +443,9 @@ } 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"); }