Cleanup page header

Fix some invalid html, remove dead code.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Šī revīzija ir iekļauta:
Lars Hjemli 2008-04-15 00:00:11 +02:00
vecāks 78031f92b0
revīzija 3cfcb086ab

Parādīt failu

@ -484,15 +484,10 @@ void cgit_print_pageheader(struct cgit_context *ctx)
html_attr(cgit_rooturl()); html_attr(cgit_rooturl());
html("'><img src='"); html("'><img src='");
html_attr(ctx->cfg.logo); html_attr(ctx->cfg.logo);
html("'/></a></td>\n"); html("' alt='cgit logo'/></a></td>\n");
html("<td class='main'>"); html("<td class='main'>");
if (ctx->repo) { if (ctx->repo) {
/*
html("<a href='");
html_attr(cgit_rooturl());
html("'>index</a> : ");
*/
reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"),
ctx->qry.head, NULL, NULL); ctx->qry.head, NULL, NULL);
html(" : "); html(" : ");
@ -507,25 +502,17 @@ void cgit_print_pageheader(struct cgit_context *ctx)
html("</form>"); html("</form>");
} else } else
html_txt(ctx->cfg.root_title); html_txt(ctx->cfg.root_title);
html("</td>\n"); html("</td></tr>\n");
html("<tr><td class='sub'"); html("<tr><td class='sub'");
if (ctx->repo) { if (ctx->repo) {
html(" colspan='2'>"); html(" colspan='2'>");
html_txt(ctx->repo->desc); html_txt(ctx->repo->desc);
} } else {
/*
else if (ctx->cfg.root_subtitle)
html_txt(ctx->cfg.root_subtitle);
*/
else {
html(">"); html(">");
html_txt("a fast webinterface for the git dscm"); html_txt("a fast webinterface for the git dscm");
} }
html("</td></tr>\n"); html("</td></tr></table>\n");
html("</tr>\n");
html("</table>\n");
html("<table class='tabs'><tr><td>\n"); html("<table class='tabs'><tr><td>\n");
if (ctx->repo) { if (ctx->repo) {