summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ui-shared.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 6f83d2a..209af6e 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -543,70 +543,70 @@ void cgit_print_pageheader(struct cgit_context *ctx)
543{ 543{
544 struct cgit_cmd *cmd = cgit_get_cmd(ctx); 544 struct cgit_cmd *cmd = cgit_get_cmd(ctx);
545 545
546 html("<table id='header'>\n"); 546 html("<table id='header'>\n");
547 html("<tr>\n"); 547 html("<tr>\n");
548 html("<td class='logo' rowspan='2'><a href='"); 548 html("<td class='logo' rowspan='2'><a href='");
549 if (ctx->cfg.logo_link) 549 if (ctx->cfg.logo_link)
550 html_attr(ctx->cfg.logo_link); 550 html_attr(ctx->cfg.logo_link);
551 else 551 else
552 html_attr(cgit_rooturl()); 552 html_attr(cgit_rooturl());
553 html("'><img src='"); 553 html("'><img src='");
554 html_attr(ctx->cfg.logo); 554 html_attr(ctx->cfg.logo);
555 html("' alt='cgit logo'/></a></td>\n"); 555 html("' alt='cgit logo'/></a></td>\n");
556 556
557 html("<td class='main'>"); 557 html("<td class='main'>");
558 if (ctx->repo) { 558 if (ctx->repo) {
559 cgit_index_link("index", NULL, NULL, NULL, 0); 559 cgit_index_link("index", NULL, NULL, NULL, 0);
560 html(" : "); 560 html(" : ");
561 reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), 561 reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"),
562 ctx->qry.head, NULL, NULL); 562 ctx->qry.head, NULL, NULL);
563 html("</td><td class='form'>"); 563 html("</td><td class='form'>");
564 html("<form method='get' action=''>\n"); 564 html("<form method='get' action=''>\n");
565 add_hidden_formfields(0, 1, ctx->qry.page); 565 add_hidden_formfields(0, 1, ctx->qry.page);
566 html("<select name='h' onchange='this.form.submit();'>\n"); 566 html("<select name='h' onchange='this.form.submit();'>\n");
567 for_each_branch_ref(print_branch_option, ctx->qry.head); 567 for_each_branch_ref(print_branch_option, ctx->qry.head);
568 html("</select> "); 568 html("</select> ");
569 html("<input type='submit' name='' value='switch'/>"); 569 html("<input type='submit' name='' value='switch'/>");
570 html("</form>"); 570 html("</form>");
571 } else 571 } else
572 html_txt(ctx->cfg.root_title); 572 html_txt(ctx->cfg.root_title);
573 html("</td></tr>\n"); 573 html("</td></tr>\n");
574 574
575 html("<tr><td class='sub'"); 575 html("<tr><td class='sub'>");
576 if (ctx->repo) { 576 if (ctx->repo) {
577 html(" colspan='2'>");
578 html_txt(ctx->repo->desc); 577 html_txt(ctx->repo->desc);
578 html("</td><td class='sub right'>");
579 html_txt(ctx->repo->owner);
579 } else { 580 } else {
580 html(">");
581 if (ctx->cfg.root_desc) 581 if (ctx->cfg.root_desc)
582 html_txt(ctx->cfg.root_desc); 582 html_txt(ctx->cfg.root_desc);
583 else if (ctx->cfg.index_info) 583 else if (ctx->cfg.index_info)
584 html_include(ctx->cfg.index_info); 584 html_include(ctx->cfg.index_info);
585 } 585 }
586 html("</td></tr></table>\n"); 586 html("</td></tr></table>\n");
587 587
588 html("<table class='tabs'><tr><td>\n"); 588 html("<table class='tabs'><tr><td>\n");
589 if (ctx->repo) { 589 if (ctx->repo) {
590 reporevlink(NULL, "summary", NULL, hc(cmd, "summary"), 590 reporevlink(NULL, "summary", NULL, hc(cmd, "summary"),
591 ctx->qry.head, NULL, NULL); 591 ctx->qry.head, NULL, NULL);
592 cgit_refs_link("refs", NULL, hc(cmd, "refs"), ctx->qry.head, 592 cgit_refs_link("refs", NULL, hc(cmd, "refs"), ctx->qry.head,
593 ctx->qry.sha1, NULL); 593 ctx->qry.sha1, NULL);
594 cgit_log_link("log", NULL, hc(cmd, "log"), ctx->qry.head, 594 cgit_log_link("log", NULL, hc(cmd, "log"), ctx->qry.head,
595 NULL, NULL, 0, NULL, NULL); 595 NULL, NULL, 0, NULL, NULL);
596 cgit_tree_link("tree", NULL, hc(cmd, "tree"), ctx->qry.head, 596 cgit_tree_link("tree", NULL, hc(cmd, "tree"), ctx->qry.head,
597 ctx->qry.sha1, NULL); 597 ctx->qry.sha1, NULL);
598 cgit_commit_link("commit", NULL, hc(cmd, "commit"), 598 cgit_commit_link("commit", NULL, hc(cmd, "commit"),
599 ctx->qry.head, ctx->qry.sha1); 599 ctx->qry.head, ctx->qry.sha1);
600 cgit_diff_link("diff", NULL, hc(cmd, "diff"), ctx->qry.head, 600 cgit_diff_link("diff", NULL, hc(cmd, "diff"), ctx->qry.head,
601 ctx->qry.sha1, ctx->qry.sha2, NULL); 601 ctx->qry.sha1, ctx->qry.sha2, NULL);
602 if (ctx->repo->readme) 602 if (ctx->repo->readme)
603 reporevlink("about", "about", NULL, 603 reporevlink("about", "about", NULL,
604 hc(cmd, "about"), ctx->qry.head, NULL, 604 hc(cmd, "about"), ctx->qry.head, NULL,
605 NULL); 605 NULL);
606 html("</td><td class='form'>"); 606 html("</td><td class='form'>");
607 html("<form class='right' method='get' action='"); 607 html("<form class='right' method='get' action='");
608 if (ctx->cfg.virtual_root) 608 if (ctx->cfg.virtual_root)
609 html_attr(cgit_fileurl(ctx->qry.repo, "log", 609 html_attr(cgit_fileurl(ctx->qry.repo, "log",
610 ctx->qry.path, NULL)); 610 ctx->qry.path, NULL));
611 html("'>\n"); 611 html("'>\n");
612 add_hidden_formfields(1, 0, "log"); 612 add_hidden_formfields(1, 0, "log");