Author: Jason A. Donenfeld <Jason@zx2c4.com>
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.
cgit.css | 7 +++++++ ui-shared.c | 2 +-
diff --git a/cgit.css b/cgit.css index 71b0b9b699586255b1787b0a72da0f557031f41e..6888cde733d485d31e416c4c0de7b5e6a5985a62 100644 --- a/cgit.css +++ b/cgit.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; diff --git a/ui-shared.c b/ui-shared.c index bd74f42e20eb56d146494391004d351b299dc659..32f23f9d98355d5233035ecf5a7cae379df5ddc4 100644 --- a/ui-shared.c +++ b/ui-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");