+ if (ctx.cfg.index_header)
+ html_include(ctx.cfg.index_header);
+
+ html("<table summary='repository list' class='list nowrap'>");
+ for (i=0; i<cgit_repolist.count; i++) {
+ ctx.repo = &cgit_repolist.repos[i];
+ if (!is_match(ctx.repo))
+ continue;
+ if (!header++)
+ print_header(columns);
+ hits++;
+ if ((last_group == NULL && ctx.repo->group != NULL) ||
+ (last_group != NULL && ctx.repo->group == NULL) ||
+ (last_group != NULL && ctx.repo->group != NULL &&
+ strcmp(ctx.repo->group, last_group))) {
+ htmlf("<tr class='nohover'><td colspan='%d' class='repogroup'>",
+ columns);
+ html_txt(ctx.repo->group);
+ html("</td></tr>");
+ last_group = ctx.repo->group;
+ }
+ htmlf("<tr><td class='%s'>",
+ ctx.repo->group ? "sublevel-repo" : "toplevel-repo");
+ html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL);
+ html_txt(ctx.repo->name);
+ html_link_close();
+ html("</td><td>");
+ html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL);
+ html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc);