]> git.cameronkatri.com Git - cgit.git/commitdiff
Add footer with page creation time and cgit version on all pages
authorLars Hjemli <hjemli@gmail.com>
Sat, 3 May 2008 09:07:41 +0000 (11:07 +0200)
committerLars Hjemli <hjemli@gmail.com>
Sat, 3 May 2008 09:07:41 +0000 (11:07 +0200)
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.css
ui-shared.c

index d57722c47086bbae97c26d3dd227ee7aaebb08c9..fac5f855fdcd129dd1a001b3ca8ce96a36f0a4d9 100644 (file)
--- a/cgit.css
+++ b/cgit.css
@@ -447,3 +447,9 @@ span.age-months {
 span.age-years {
        color: #bbb;
 }
+div.footer {
+       margin-top: 0.5em;
+       text-align: center;
+       font-size: 80%;
+       color: #ccc;
+}
index f36635495b7fdb2671af6ba949b31e9a9b4cdd8c..44269a7677cff9b5d24b14b3b54d90defe573e63 100644 (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");
 }