about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-04 17:10:14 -0500
committerJune McEnroe <june@causal.agency>2022-02-13 11:57:20 -0500
commit957855ffdb73b40402b30771e64e73b37cca18b8 (patch)
treeb85b1d5c5cdd623ca7ac632c612bbbed4b1cd838
parentFix tests for diff spans (diff)
downloadcgit-pink-957855ffdb73b40402b30771e64e73b37cca18b8.tar.gz
cgit-pink-957855ffdb73b40402b30771e64e73b37cca18b8.zip
Use owner-filter for repo page headers
Previously it was only used if owners were displayed on the index.
-rw-r--r--ui-shared.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 2bdec5d..1858ea4 100644
--- a/ui-shared.c
+++ b/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);