about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJune McEnroe2021-02-04 17:10:14 -0500
committerJune McEnroe2022-02-13 11:57:20 -0500
commit957855ffdb73b40402b30771e64e73b37cca18b8 (patch)
treeb85b1d5c5cdd623ca7ac632c612bbbed4b1cd838
parentFix tests for diff spans (diff)
downloadcgit-957855ffdb73b40402b30771e64e73b37cca18b8.tar.gz
cgit-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)
1027 if (ctx.repo) { 1027 if (ctx.repo) {
1028 html_txt(ctx.repo->desc); 1028 html_txt(ctx.repo->desc);
1029 html("</td><td class='sub right'>"); 1029 html("</td><td class='sub right'>");
1030 html_txt(ctx.repo->owner); 1030 if (ctx.repo->owner_filter) {
1031 cgit_open_filter(ctx.repo->owner_filter);
1032 html_txt(ctx.repo->owner);
1033 cgit_close_filter(ctx.repo->owner_filter);
1034 } else {
1035 html_txt(ctx.repo->owner);
1036 }
1031 } else { 1037 } else {
1032 if (ctx.cfg.root_desc) 1038 if (ctx.cfg.root_desc)
1033 html_txt(ctx.cfg.root_desc); 1039 html_txt(ctx.cfg.root_desc);