diff --git a/ui-repolist.c b/ui-repolist.c index 436a774..0de328b 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -78,13 +78,23 @@ int is_in_url(struct cgit_repo *repo) return 0; } +void print_sort_header(const char *title, const char *sort) +{ + htmlf("
", - ctx.repo->group ? "sublevel-repo" : "toplevel-repo"); + !sorted && ctx.repo->group ? "sublevel-repo" : "toplevel-repo"); cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); html(" | "); html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); |