]> granicus.if.org Git - cgit/commitdiff
ui-shared: add now-dynamic age to footer ch/warmcat
authorAndy Green <andy@warmcat.com>
Sun, 24 Jun 2018 08:19:35 +0000 (16:19 +0800)
committerAndy Green <andy@warmcat.com>
Fri, 29 Jun 2018 06:30:24 +0000 (14:30 +0800)
Now ages advance at the client, we can add one
to the generated footer.

Signed-off-by: Andy Green <andy@warmcat.com>
ui-shared.c

index 2d79e36ba6febdcbd4b2a34e5a43660d6eb7689d..6d19c58ca5586b1d983b9f06dad2ba920d39233e 100644 (file)
@@ -849,7 +849,9 @@ void cgit_print_docend(void)
                htmlf("<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit %s</a> "
                        "(<a href='https://git-scm.com/'>git %s</a>) at ", cgit_version, git_version_string);
                html_txt(show_date(time(NULL), 0, cgit_date_mode(DATE_ISO8601)));
-               html("</div>\n");
+               html(" (");
+               cgit_print_age(time(NULL), 0, -1);
+               html(" ago)</div>\n");
        }
        html("</div> <!-- id=cgit -->\n");
        html("</body>\n</html>\n");