X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e9cbdf64632fbe64d6b0c4974ac947ef954938e7..c34e28835bc06ea9f76f440909f59a697910e9e8:/ui-shared.c
diff --git a/ui-shared.c b/ui-shared.c
index 9a38aa9..2c88b72 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -12,8 +12,7 @@
#include "html.h"
static const char cgit_doctype[] =
-"\n";
+"\n";
static char *http_date(time_t t)
{
@@ -723,7 +722,7 @@ void cgit_print_docstart(void)
char *host = cgit_hosturl();
html(cgit_doctype);
- html("\n");
+ html("\n");
html("
\n");
html("");
html_txt(ctx.page.title);
@@ -792,13 +791,11 @@ void cgit_print_error_page(int code, const char *msg, const char *fmt, ...)
ctx.page.expires = ctx.cfg.cache_dynamic_ttl;
ctx.page.status = code;
ctx.page.statusmsg = msg;
- cgit_print_http_headers();
- cgit_print_docstart();
- cgit_print_pageheader();
+ cgit_print_layout_start();
va_start(ap, fmt);
cgit_vprint_error(fmt, ap);
va_end(ap);
- cgit_print_docend();
+ cgit_print_layout_end();
}
void cgit_print_layout_start(void)
@@ -940,14 +937,14 @@ static void print_header(void)
cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
if (ctx.env.authenticated) {
html("");
- html("");
}
} else
|