all repos — cgit @ 2159414a3945f059a7e52a4900ffcd1ca665e102

a hyperfast web frontend for git written in c

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.
Jason A. Donenfeld Jason@zx2c4.com
Wed, 19 Mar 2014 03:11:45 -0600
commit

2159414a3945f059a7e52a4900ffcd1ca665e102

parent

caed6cb27f1869b0590cab56fc3394762892d049

2 files changed, 8 insertions(+), 1 deletions(-)

jump to
M cgit.csscgit.css

@@ -590,6 +590,13 @@ text-align: center;

font-size: 80%; 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 { color: #000; margin: 0px 0.5em;
M ui-shared.cui-shared.c

@@ -740,7 +740,7 @@ }

if (ctx.cfg.footer) html_include(ctx.cfg.footer); 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_print_date(time(NULL), FMT_LONGDATE, ctx.cfg.local_time); html("</div>\n");