From 3cfcb086abfc2e94426623b487a47a8b5cc57b7e Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Tue, 15 Apr 2008 00:00:11 +0200 Subject: Cleanup page header Fix some invalid html, remove dead code. Signed-off-by: Lars Hjemli --- ui-shared.c | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/ui-shared.c b/ui-shared.c index bb08c4a..8a804c2 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -484,15 +484,10 @@ void cgit_print_pageheader(struct cgit_context *ctx) html_attr(cgit_rooturl()); html("'>\n"); + html("' alt='cgit logo'/>\n"); html(""); if (ctx->repo) { -/* - html("index : "); -*/ reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), ctx->qry.head, NULL, NULL); html(" : "); @@ -507,25 +502,17 @@ void cgit_print_pageheader(struct cgit_context *ctx) html(""); } else html_txt(ctx->cfg.root_title); - html("\n"); + html("\n"); html("repo) { html(" colspan='2'>"); html_txt(ctx->repo->desc); - } -/* - else if (ctx->cfg.root_subtitle) - html_txt(ctx->cfg.root_subtitle); -*/ - else { + } else { html(">"); html_txt("a fast webinterface for the git dscm"); } - html("\n"); - - html("\n"); - html("\n"); + html("\n"); html("
\n"); if (ctx->repo) { -- cgit v1.2.3-57-g22cb