mirror of
https://git.zx2c4.com/cgit
synced 2024-11-09 18:18:42 +00:00
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:
parent
c6078b8b00
commit
aa3c4486b4
6
cgit.css
6
cgit.css
@ -447,3 +447,9 @@ span.age-months {
|
|||||||
span.age-years {
|
span.age-years {
|
||||||
color: #bbb;
|
color: #bbb;
|
||||||
}
|
}
|
||||||
|
div.footer {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 80%;
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
@ -443,6 +443,9 @@ void cgit_print_docstart(struct cgit_context *ctx)
|
|||||||
|
|
||||||
void cgit_print_docend()
|
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");
|
html("</div>\n</body>\n</html>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user