X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/c6078b8b006bcb0671a3c1bc21dd1a2c01035a2e..837d464af77d76a2661d92e05167657cbf430d80:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index ee4facb..ab050c7 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -59,6 +59,15 @@ int is_match(struct cgit_repo *repo) return 0; } +int is_in_url(struct cgit_repo *repo) +{ + if (!ctx.qry.url) + return 1; + if (repo->url && !prefixcmp(repo->url, ctx.qry.url)) + return 1; + return 0; +} + void print_header(int columns) { html("
| ", ctx.repo->group ? "sublevel-repo" : "toplevel-repo"); - html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); - html_txt(ctx.repo->name); - html_link_close(); + cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); html(" | "); html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); @@ -136,9 +143,7 @@ void cgit_print_repolist() html(" | "); if (ctx.cfg.enable_index_links) { html(""); - html_link_open(cgit_repourl(ctx.repo->url), - NULL, "button"); - html("summary"); + cgit_summary_link("summary", NULL, "button", NULL); cgit_log_link("log", NULL, "button", NULL, NULL, NULL, 0, NULL, NULL); cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL); |