X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/536b0541fcfea2169e4df33043cd9ff14c657bce..29b37e9781ce1bb04e558c7490d2c29eb1a477e5:/ui-repolist.c?ds=sidebyside diff --git a/ui-repolist.c b/ui-repolist.c index a7de453..ee4facb 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -48,25 +48,19 @@ 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; } void print_header(int columns) { - if (ctx.cfg.index_header) { - htmlf("
| "); + html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); + html_link_close(); html(" | "); html_txt(ctx.repo->owner); html(" | "); @@ -135,5 +149,13 @@ void cgit_print_repolist() html(" |