summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ui-repolist.c8
-rw-r--r--ui-shared.c7
2 files changed, 5 insertions, 10 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index 725338b..ab050c7 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -128,29 +128,25 @@ void cgit_print_repolist()
128 html_txt(ctx.repo->group); 128 html_txt(ctx.repo->group);
129 html("</td></tr>"); 129 html("</td></tr>");
130 last_group = ctx.repo->group; 130 last_group = ctx.repo->group;
131 } 131 }
132 htmlf("<tr><td class='%s'>", 132 htmlf("<tr><td class='%s'>",
133 ctx.repo->group ? "sublevel-repo" : "toplevel-repo"); 133 ctx.repo->group ? "sublevel-repo" : "toplevel-repo");
134 html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); 134 cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
135 html_txt(ctx.repo->name);
136 html_link_close();
137 html("</td><td>"); 135 html("</td><td>");
138 html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); 136 html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL);
139 html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); 137 html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc);
140 html_link_close(); 138 html_link_close();
141 html("</td><td>"); 139 html("</td><td>");
142 html_txt(ctx.repo->owner); 140 html_txt(ctx.repo->owner);
143 html("</td><td>"); 141 html("</td><td>");
144 print_modtime(ctx.repo); 142 print_modtime(ctx.repo);
145 html("</td>"); 143 html("</td>");
146 if (ctx.cfg.enable_index_links) { 144 if (ctx.cfg.enable_index_links) {
147 html("<td>"); 145 html("<td>");
148 html_link_open(cgit_repourl(ctx.repo->url), 146 cgit_summary_link("summary", NULL, "button", NULL);
149 NULL, "button");
150 html("summary</a>");
151 cgit_log_link("log", NULL, "button", NULL, NULL, NULL, 147 cgit_log_link("log", NULL, "button", NULL, NULL, NULL,
152 0, NULL, NULL); 148 0, NULL, NULL);
153 cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL); 149 cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL);
154 html("</td>"); 150 html("</td>");
155 } 151 }
156 html("</tr>\n"); 152 html("</tr>\n");
diff --git a/ui-shared.c b/ui-shared.c
index ee3f6fe..1fc5c09 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -600,14 +600,13 @@ void cgit_print_pageheader(struct cgit_context *ctx)
600 html("' alt='cgit logo'/></a></td>\n"); 600 html("' alt='cgit logo'/></a></td>\n");
601 601
602 html("<td class='main'>"); 602 html("<td class='main'>");
603 if (ctx->repo) { 603 if (ctx->repo) {
604 cgit_index_link("index", NULL, NULL, NULL, 0); 604 cgit_index_link("index", NULL, NULL, NULL, 0);
605 html(" : "); 605 html(" : ");
606 reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"), 606 cgit_summary_link(ctx->repo->name, ctx->repo->name, NULL, NULL);
607 ctx->qry.head, NULL, NULL);
608 html("</td><td class='form'>"); 607 html("</td><td class='form'>");
609 html("<form method='get' action=''>\n"); 608 html("<form method='get' action=''>\n");
610 add_hidden_formfields(0, 1, ctx->qry.page); 609 add_hidden_formfields(0, 1, ctx->qry.page);
611 html("<select name='h' onchange='this.form.submit();'>\n"); 610 html("<select name='h' onchange='this.form.submit();'>\n");
612 for_each_branch_ref(print_branch_option, ctx->qry.head); 611 for_each_branch_ref(print_branch_option, ctx->qry.head);
613 html("</select> "); 612 html("</select> ");
@@ -629,14 +628,14 @@ void cgit_print_pageheader(struct cgit_context *ctx)
629 html_include(ctx->cfg.index_info); 628 html_include(ctx->cfg.index_info);
630 } 629 }
631 html("</td></tr></table>\n"); 630 html("</td></tr></table>\n");
632 631
633 html("<table class='tabs'><tr><td>\n"); 632 html("<table class='tabs'><tr><td>\n");
634 if (ctx->repo) { 633 if (ctx->repo) {
635 reporevlink(NULL, "summary", NULL, hc(cmd, "summary"), 634 cgit_summary_link(ctx->repo->name, ctx->repo->name, NULL,
636 ctx->qry.head, NULL, NULL); 635 ctx->qry.head);
637 cgit_refs_link("refs", NULL, hc(cmd, "refs"), ctx->qry.head, 636 cgit_refs_link("refs", NULL, hc(cmd, "refs"), ctx->qry.head,
638 ctx->qry.sha1, NULL); 637 ctx->qry.sha1, NULL);
639 cgit_log_link("log", NULL, hc(cmd, "log"), ctx->qry.head, 638 cgit_log_link("log", NULL, hc(cmd, "log"), ctx->qry.head,
640 NULL, NULL, 0, NULL, NULL); 639 NULL, NULL, 0, NULL, NULL);
641 cgit_tree_link("tree", NULL, hc(cmd, "tree"), ctx->qry.head, 640 cgit_tree_link("tree", NULL, hc(cmd, "tree"), ctx->qry.head,
642 ctx->qry.sha1, NULL); 641 ctx->qry.sha1, NULL);