summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2008-04-14 22:00:11 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-04-14 22:00:11 (UTC)
commit3cfcb086abfc2e94426623b487a47a8b5cc57b7e (patch) (side-by-side diff)
tree3ec281d445d710647bca817cac93cc794093b569
parent78031f92b0ff064efa82065a3cf6020c1256a5fd (diff)
downloadcgit-3cfcb086abfc2e94426623b487a47a8b5cc57b7e.zip
cgit-3cfcb086abfc2e94426623b487a47a8b5cc57b7e.tar.gz
cgit-3cfcb086abfc2e94426623b487a47a8b5cc57b7e.tar.bz2
Cleanup page header
Fix some invalid html, remove dead code. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--ui-shared.c21
1 files 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
@@ -485,13 +485,8 @@ void cgit_print_pageheader(struct cgit_context *ctx)
html("'><img src='");
html_attr(ctx->cfg.logo);
- html("'/></a></td>\n");
+ html("' alt='cgit logo'/></a></td>\n");
html("<td class='main'>");
if (ctx->repo) {
-/*
- html("<a href='");
- html_attr(cgit_rooturl());
- html("'>index</a> : ");
-*/
reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"),
ctx->qry.head, NULL, NULL);
@@ -508,5 +503,5 @@ void cgit_print_pageheader(struct cgit_context *ctx)
} else
html_txt(ctx->cfg.root_title);
- html("</td>\n");
+ html("</td></tr>\n");
html("<tr><td class='sub'");
@@ -514,17 +509,9 @@ void cgit_print_pageheader(struct cgit_context *ctx)
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("</td></tr>\n");
-
- html("</tr>\n");
- html("</table>\n");
+ html("</td></tr></table>\n");
html("<table class='tabs'><tr><td>\n");