static void print_sort_header(const char *title, const char *sort)
{
html("<th class='left'><a href='");
- html_attr(cgit_rooturl());
+ html_attr(cgit_currenturl());
htmlf("?s=%s", sort);
if (ctx.qry.search) {
html("&q=");
class = (ctx.qry.ofs == ofs) ? "current" : NULL;
html("<li>");
cgit_index_link(fmt("[%d]", i + 1), fmt("Page %d", i + 1),
- class, search, sort, ofs);
+ class, search, sort, ofs, 0);
html("</li>");
}
html("</ul>");
html("<table summary='repository list' class='list nowrap'>");
for (i = 0; i < cgit_repolist.count; i++) {
ctx.repo = &cgit_repolist.repos[i];
+ if (ctx.repo->hide || ctx.repo->ignore)
+ continue;
if (!(is_match(ctx.repo) && is_in_url(ctx.repo)))
continue;
hits++;
cgit_close_filter(ctx.repo->owner_filter);
} else {
html("<a href='");
- html_attr(cgit_rooturl());
- html("?=");
+ html_attr(cgit_currenturl());
+ html("?q=");
html_url_arg(ctx.repo->owner);
html("'>");
html_txt(ctx.repo->owner);