diff options
author | Jason A. Donenfeld | 2014-03-19 03:11:45 -0600 |
---|---|---|
committer | Jason A. Donenfeld | 2014-12-23 19:40:14 -0700 |
commit | 2159414a3945f059a7e52a4900ffcd1ca665e102 (patch) | |
tree | 4a315c7b36fd5fad7d1a6084151a1f012bb67df1 | |
parent | caed6cb27f1869b0590cab56fc3394762892d049 (diff) | |
download | cgit-2159414a3945f059a7e52a4900ffcd1ca665e102.tar.gz cgit-2159414a3945f059a7e52a4900ffcd1ca665e102.tar.bz2 cgit-2159414a3945f059a7e52a4900ffcd1ca665e102.zip |
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.
-rw-r--r-- | cgit.css | 7 | ||||
-rw-r--r-- | ui-shared.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -590,6 +590,13 @@ div#cgit div.footer { | |||
590 | font-size: 80%; | 590 | font-size: 80%; |
591 | color: #ccc; | 591 | color: #ccc; |
592 | } | 592 | } |
593 | div#cgit div.footer a { | ||
594 | color: #ccc; | ||
595 | text-decoration: none; | ||
596 | } | ||
597 | div#cgit div.footer a:hover { | ||
598 | text-decoration: underline; | ||
599 | } | ||
593 | div#cgit a.branch-deco { | 600 | div#cgit a.branch-deco { |
594 | color: #000; | 601 | color: #000; |
595 | margin: 0px 0.5em; | 602 | margin: 0px 0.5em; |
diff --git a/ui-shared.c b/ui-shared.c index bd74f42..32f23f9 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -740,7 +740,7 @@ void cgit_print_docend() | |||
740 | if (ctx.cfg.footer) | 740 | if (ctx.cfg.footer) |
741 | html_include(ctx.cfg.footer); | 741 | html_include(ctx.cfg.footer); |
742 | else { | 742 | else { |
743 | htmlf("<div class='footer'>generated by cgit %s at ", | 743 | htmlf("<div class='footer'>generated by <a href='http://git.zx2c4.com/cgit/about/'>cgit %s</a> at ", |
744 | cgit_version); | 744 | cgit_version); |
745 | cgit_print_date(time(NULL), FMT_LONGDATE, ctx.cfg.local_time); | 745 | cgit_print_date(time(NULL), FMT_LONGDATE, ctx.cfg.local_time); |
746 | html("</div>\n"); | 746 | html("</div>\n"); |