From mboxrd@z Thu Jan 1 00:00:00 1970 From: chris.burroughs at gmail.com (Chris Burroughs) Date: Fri, 01 Aug 2014 15:44:17 -0400 Subject: [PATCH] filter: add support for owner-filter In-Reply-To: <20140801181850.GS26927@serenity.lan> References: <53DBD466.9000509@gmail.com> <20140801181850.GS26927@serenity.lan> Message-ID: <53DBEE11.8030509@gmail.com> On 08/01/2014 02:18 PM, John Keeping wrote: > On Fri, Aug 01, 2014 at 01:54:46PM -0400, Chris Burroughs wrote: > This isn't really acting as a filter, you're taking the argument from > the function call and then just appending something based on that from > the default generated by the C code. I think the email filter has to > take the email address as an argument because it may not be present in > the input to the filter (depending on the value of "noplainemail")... > > > Perhaps this would be better as: > > if (ctx.cfg.enable_index_owner) { > 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("