summaryrefslogtreecommitdiffabout
path: root/ui-shared.c
Unidiff
Diffstat (limited to 'ui-shared.c') (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
@@ -483,17 +483,12 @@ void cgit_print_pageheader(struct cgit_context *ctx)
483 else 483 else
484 html_attr(cgit_rooturl()); 484 html_attr(cgit_rooturl());
485 html("'><img src='"); 485 html("'><img src='");
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
489 html("<td class='main'>"); 489 html("<td class='main'>");
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"),
497 ctx->qry.head, NULL, NULL); 492 ctx->qry.head, NULL, NULL);
498 html(" : "); 493 html(" : ");
499 html_txt(ctx->qry.page); 494 html_txt(ctx->qry.page);
@@ -506,27 +501,19 @@ void cgit_print_pageheader(struct cgit_context *ctx)
506 html("<input type='submit' name='' value='switch'/>"); 501 html("<input type='submit' name='' value='switch'/>");
507 html("</form>"); 502 html("</form>");
508 } else 503 } else
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
512 html("<tr><td class='sub'"); 507 html("<tr><td class='sub'");
513 if (ctx->repo) { 508 if (ctx->repo) {
514 html(" colspan='2'>"); 509 html(" colspan='2'>");
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(">");
523 html_txt("a fast webinterface for the git dscm"); 513 html_txt("a fast webinterface for the git dscm");
524 } 514 }
525 html("</td></tr>\n"); 515 html("</td></tr></table>\n");
526
527 html("</tr>\n");
528 html("</table>\n");
529 516
530 html("<table class='tabs'><tr><td>\n"); 517 html("<table class='tabs'><tr><td>\n");
531 if (ctx->repo) { 518 if (ctx->repo) {
532 reporevlink(NULL, "summary", NULL, hc(cmd, "summary"), 519 reporevlink(NULL, "summary", NULL, hc(cmd, "summary"),