]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
Add page 'ls_cache'
[ps-cgit] / ui-repolist.c
index a7de4534fc53addd45761bee9b3ecd83cbffa382..98009c019b497d4c4b5d4ec58dc5186fa03cac5c 100644 (file)
@@ -48,13 +48,13 @@ int is_match(struct cgit_repo *repo)
 {
        if (!ctx.qry.search)
                return 1;
-       if (repo->url && strstr(repo->url, ctx.qry.search))
+       if (repo->url && strcasestr(repo->url, ctx.qry.search))
                return 1;
-       if (repo->name && strstr(repo->name, ctx.qry.search))
+       if (repo->name && strcasestr(repo->name, ctx.qry.search))
                return 1;
-       if (repo->desc && strstr(repo->desc, ctx.qry.search))
+       if (repo->desc && strcasestr(repo->desc, ctx.qry.search))
                return 1;
-       if (repo->owner && strstr(repo->owner, ctx.qry.search))
+       if (repo->owner && strcasestr(repo->owner, ctx.qry.search))
                return 1;
        return 0;
 }
@@ -114,7 +114,9 @@ void cgit_print_repolist()
                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);
+               html_link_close();
                html("</td><td>");
                html_txt(ctx.repo->owner);
                html("</td><td>");