neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit aa3c4486b41b8b13d0f52477f033837fc8bb9524
parent c6078b8b006bcb0671a3c1bc21dd1a2c01035a2e
Author: Lars Hjemli <hjemli@gmail.com>
Date:   Sat,  3 May 2008 11:07:41 +0200

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

Signed-off-by: Lars Hjemli <hjemli@gmail.com>

Diffstat:
Mcgit.css | 6++++++
Mui-shared.c | 3+++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git 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; +} diff --git a/ui-shared.c b/ui-shared.c @@ -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"); }