summary refs log tree commit diff
path: root/www/git.causal.agency/cgit
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-04 17:10:14 -0500
committerJune McEnroe <june@causal.agency>2021-02-04 17:10:55 -0500
commit7d56da628a55245403584d8f6c63af9c6ebbc6d5 (patch)
tree9fcaedd227f78f6c75960aebe28c6899f0f7b470 /www/git.causal.agency/cgit
parentWarn twice about stopped jobs (diff)
downloadsrc-7d56da628a55245403584d8f6c63af9c6ebbc6d5.tar.gz
src-7d56da628a55245403584d8f6c63af9c6ebbc6d5.zip
Use owner-filter for repo page headers
Previously it was only used if owners were displayed on the index.
Diffstat (limited to '')
-rw-r--r--www/git.causal.agency/cgit/ui-shared.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/www/git.causal.agency/cgit/ui-shared.c b/www/git.causal.agency/cgit/ui-shared.c
index 61401b54..d02b6c85 100644
--- a/www/git.causal.agency/cgit/ui-shared.c
+++ b/www/git.causal.agency/cgit/ui-shared.c
@@ -1027,7 +1027,13 @@ static void print_header(void)
 	if (ctx.repo) {
 		html_txt(ctx.repo->desc);
 		html("</td><td class='sub right'>");
-		html_txt(ctx.repo->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_txt(ctx.repo->owner);
+		}
 	} else {
 		if (ctx.cfg.root_desc)
 			html_txt(ctx.cfg.root_desc);
'3' class='logmsg'> 2019-01-11Import /usr/src/lib/libedit from NetBSD 8.0June McEnroe 2019-01-11Add PSlit for prompt escapesJune McEnroe 2019-01-11Don't make depend automaticallyJune McEnroe