From 96ceb9a95a7a321209cff347fefd141a9fffc7ca Mon Sep 17 00:00:00 2001 From: Chris Burroughs Date: Mon, 4 Aug 2014 09:23:08 -0400 Subject: repolist: add owner-filter This allows custom links to be used for repository owners by configuring a filter to be applied in the "Owner" column in the repository list. --- ui-repolist.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'ui-repolist.c') diff --git a/ui-repolist.c b/ui-repolist.c index 49c991f..f929cb7 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -307,13 +307,19 @@ void cgit_print_repolist() html_link_close(); html(""); if (ctx.cfg.enable_index_owner) { - html(""); - html_txt(ctx.repo->owner); - html(""); + if (ctx.repo->owner_filter) { + cgit_open_filter(ctx.repo->owner_filter); + html_txt(ctx.repo->owner); + cgit_close_filter(ctx.repo->owner_filter); + } else { + html(""); + html_txt(ctx.repo->owner); + html(""); + } html(""); } print_modtime(ctx.repo); -- cgit v1.2.3-70-g09d2