]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
ui-repolist: use correct owner query link
[ps-cgit] / ui-repolist.c
index f929cb79ec05ded2e92deb90e50743dde88d6681..2b551813f6a5d9790672ea863a59f18dc3348ab3 100644 (file)
@@ -275,6 +275,8 @@ void cgit_print_repolist()
        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++;
@@ -314,7 +316,7 @@ void cgit_print_repolist()
                        } else {
                                html("<a href='");
                                html_attr(cgit_rooturl());
-                               html("?=");
+                               html("?q=");
                                html_url_arg(ctx.repo->owner);
                                html("'>");
                                html_txt(ctx.repo->owner);