footer: link back to cgit home page
The footer has always been overrideable using the footer= in cgitrc, so this won't anger anybody who cares about their footer.
This commit is contained in:
parent
caed6cb27f
commit
2159414a39
7
cgit.css
7
cgit.css
@ -590,6 +590,13 @@ div#cgit div.footer {
|
|||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
div#cgit div.footer a {
|
||||||
|
color: #ccc;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
div#cgit div.footer a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
div#cgit a.branch-deco {
|
div#cgit a.branch-deco {
|
||||||
color: #000;
|
color: #000;
|
||||||
margin: 0px 0.5em;
|
margin: 0px 0.5em;
|
||||||
|
@ -740,7 +740,7 @@ void cgit_print_docend()
|
|||||||
if (ctx.cfg.footer)
|
if (ctx.cfg.footer)
|
||||||
html_include(ctx.cfg.footer);
|
html_include(ctx.cfg.footer);
|
||||||
else {
|
else {
|
||||||
htmlf("<div class='footer'>generated by cgit %s at ",
|
htmlf("<div class='footer'>generated by <a href='http://git.zx2c4.com/cgit/about/'>cgit %s</a> at ",
|
||||||
cgit_version);
|
cgit_version);
|
||||||
cgit_print_date(time(NULL), FMT_LONGDATE, ctx.cfg.local_time);
|
cgit_print_date(time(NULL), FMT_LONGDATE, ctx.cfg.local_time);
|
||||||
html("</div>\n");
|
html("</div>\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user