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) (unidiff)
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) (ignore 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
@@ -486,3 +486,3 @@ void cgit_print_pageheader(struct cgit_context *ctx)
486 html_attr(ctx->cfg.logo); 486 html_attr(ctx->cfg.logo);
487 html("'/></a></td>\n"); 487 html("' alt='cgit logo'/></a></td>\n");
488 488
@@ -490,7 +490,2 @@ void cgit_print_pageheader(struct cgit_context *ctx)
490 if (ctx->repo) { 490 if (ctx->repo) {
491/*
492 html("<a href='");
493 html_attr(cgit_rooturl());
494 html("'>index</a> : ");
495*/
496 reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), 491 reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"),
@@ -509,3 +504,3 @@ void cgit_print_pageheader(struct cgit_context *ctx)
509 html_txt(ctx->cfg.root_title); 504 html_txt(ctx->cfg.root_title);
510 html("</td>\n"); 505 html("</td></tr>\n");
511 506
@@ -515,8 +510,3 @@ void cgit_print_pageheader(struct cgit_context *ctx)
515 html_txt(ctx->repo->desc); 510 html_txt(ctx->repo->desc);
516 } 511 } else {
517/*
518 else if (ctx->cfg.root_subtitle)
519 html_txt(ctx->cfg.root_subtitle);
520*/
521 else {
522 html(">"); 512 html(">");
@@ -524,6 +514,3 @@ void cgit_print_pageheader(struct cgit_context *ctx)
524 } 514 }
525 html("</td></tr>\n"); 515 html("</td></tr></table>\n");
526
527 html("</tr>\n");
528 html("</table>\n");
529 516