]> git.cameronkatri.com Git - cgit.git/commitdiff
footer: link back to cgit home page
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 19 Mar 2014 09:11:45 +0000 (03:11 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 24 Dec 2014 02:40:14 +0000 (19:40 -0700)
The footer has always been overrideable using the footer= in cgitrc, so
this won't anger anybody who cares about their footer.

cgit.css
ui-shared.c

index 71b0b9b699586255b1787b0a72da0f557031f41e..6888cde733d485d31e416c4c0de7b5e6a5985a62 100644 (file)
--- a/cgit.css
+++ b/cgit.css
@@ -590,6 +590,13 @@ div#cgit div.footer {
        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;
index bd74f42e20eb56d146494391004d351b299dc659..32f23f9d98355d5233035ecf5a7cae379df5ddc4 100644 (file)
@@ -740,7 +740,7 @@ void cgit_print_docend()
        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");