]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Add link to index page from repo header, remove page name
[ps-cgit] / ui-shared.c
index f36635495b7fdb2671af6ba949b31e9a9b4cdd8c..cd9838732be5f5f34e2c3fba3c4ac900486333dc 100644 (file)
@@ -443,6 +443,9 @@ void cgit_print_docstart(struct cgit_context *ctx)
 
 void cgit_print_docend()
 {
+       html("</div><div class='footer'>generated ");
+       cgit_print_date(time(NULL), FMT_LONGDATE);
+       htmlf(" by cgit %s", cgit_version);
        html("</div>\n</body>\n</html>\n");
 }
 
@@ -542,10 +545,10 @@ void cgit_print_pageheader(struct cgit_context *ctx)
 
        html("<td class='main'>");
        if (ctx->repo) {
+               cgit_index_link("index", NULL, NULL, NULL, 0);
+               html(" : ");
                reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"),
                            ctx->qry.head, NULL, NULL);
-               html(" : ");
-               html_txt(ctx->qry.page);
                html("</td><td class='form'>");
                html("<form method='get' action=''>\n");
                add_hidden_formfields(0, 1, ctx->qry.page);