summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ui-shared.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 1fc5c09..d909f55 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -610,50 +610,49 @@ void cgit_print_pageheader(struct cgit_context *ctx)
610 html("<select name='h' onchange='this.form.submit();'>\n"); 610 html("<select name='h' onchange='this.form.submit();'>\n");
611 for_each_branch_ref(print_branch_option, ctx->qry.head); 611 for_each_branch_ref(print_branch_option, ctx->qry.head);
612 html("</select> "); 612 html("</select> ");
613 html("<input type='submit' name='' value='switch'/>"); 613 html("<input type='submit' name='' value='switch'/>");
614 html("</form>"); 614 html("</form>");
615 } else 615 } else
616 html_txt(ctx->cfg.root_title); 616 html_txt(ctx->cfg.root_title);
617 html("</td></tr>\n"); 617 html("</td></tr>\n");
618 618
619 html("<tr><td class='sub'>"); 619 html("<tr><td class='sub'>");
620 if (ctx->repo) { 620 if (ctx->repo) {
621 html_txt(ctx->repo->desc); 621 html_txt(ctx->repo->desc);
622 html("</td><td class='sub right'>"); 622 html("</td><td class='sub right'>");
623 html_txt(ctx->repo->owner); 623 html_txt(ctx->repo->owner);
624 } else { 624 } else {
625 if (ctx->cfg.root_desc) 625 if (ctx->cfg.root_desc)
626 html_txt(ctx->cfg.root_desc); 626 html_txt(ctx->cfg.root_desc);
627 else if (ctx->cfg.index_info) 627 else if (ctx->cfg.index_info)
628 html_include(ctx->cfg.index_info); 628 html_include(ctx->cfg.index_info);
629 } 629 }
630 html("</td></tr></table>\n"); 630 html("</td></tr></table>\n");
631 631
632 html("<table class='tabs'><tr><td>\n"); 632 html("<table class='tabs'><tr><td>\n");
633 if (ctx->repo) { 633 if (ctx->repo) {
634 cgit_summary_link(ctx->repo->name, ctx->repo->name, NULL, 634 cgit_summary_link("summary", NULL, NULL, ctx->qry.head);
635 ctx->qry.head);
636 cgit_refs_link("refs", NULL, hc(cmd, "refs"), ctx->qry.head, 635 cgit_refs_link("refs", NULL, hc(cmd, "refs"), ctx->qry.head,
637 ctx->qry.sha1, NULL); 636 ctx->qry.sha1, NULL);
638 cgit_log_link("log", NULL, hc(cmd, "log"), ctx->qry.head, 637 cgit_log_link("log", NULL, hc(cmd, "log"), ctx->qry.head,
639 NULL, NULL, 0, NULL, NULL); 638 NULL, NULL, 0, NULL, NULL);
640 cgit_tree_link("tree", NULL, hc(cmd, "tree"), ctx->qry.head, 639 cgit_tree_link("tree", NULL, hc(cmd, "tree"), ctx->qry.head,
641 ctx->qry.sha1, NULL); 640 ctx->qry.sha1, NULL);
642 cgit_commit_link("commit", NULL, hc(cmd, "commit"), 641 cgit_commit_link("commit", NULL, hc(cmd, "commit"),
643 ctx->qry.head, ctx->qry.sha1); 642 ctx->qry.head, ctx->qry.sha1);
644 cgit_diff_link("diff", NULL, hc(cmd, "diff"), ctx->qry.head, 643 cgit_diff_link("diff", NULL, hc(cmd, "diff"), ctx->qry.head,
645 ctx->qry.sha1, ctx->qry.sha2, NULL); 644 ctx->qry.sha1, ctx->qry.sha2, NULL);
646 if (ctx->repo->readme) 645 if (ctx->repo->readme)
647 reporevlink("about", "about", NULL, 646 reporevlink("about", "about", NULL,
648 hc(cmd, "about"), ctx->qry.head, NULL, 647 hc(cmd, "about"), ctx->qry.head, NULL,
649 NULL); 648 NULL);
650 html("</td><td class='form'>"); 649 html("</td><td class='form'>");
651 html("<form class='right' method='get' action='"); 650 html("<form class='right' method='get' action='");
652 if (ctx->cfg.virtual_root) 651 if (ctx->cfg.virtual_root)
653 html_attr(cgit_fileurl(ctx->qry.repo, "log", 652 html_attr(cgit_fileurl(ctx->qry.repo, "log",
654 ctx->qry.path, NULL)); 653 ctx->qry.path, NULL));
655 html("'>\n"); 654 html("'>\n");
656 add_hidden_formfields(1, 0, "log"); 655 add_hidden_formfields(1, 0, "log");
657 html("<select name='qt'>\n"); 656 html("<select name='qt'>\n");
658 html_option("grep", "log msg", ctx->qry.grep); 657 html_option("grep", "log msg", ctx->qry.grep);
659 html_option("author", "author", ctx->qry.grep); 658 html_option("author", "author", ctx->qry.grep);