diff options
author | June McEnroe <june@causal.agency> | 2021-02-04 23:10:14 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-12-19 16:13:24 +0100 |
commit | 3295155a0caf68d33fecb15f499d205c8e87cd41 (patch) | |
tree | 30e0ba8a04a0f119880596386c00daa7df3ba574 | |
parent | e32f8416e87503aef2cd2698e15f3dc5e8c40d7e (diff) | |
download | cgit-3295155a0caf68d33fecb15f499d205c8e87cd41.tar.gz cgit-3295155a0caf68d33fecb15f499d205c8e87cd41.tar.xz |
ui-shared: use owner-filter for repo page headers
Previously it was only used if owners were displayed on the index.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | ui-shared.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index f880c4e..fbf5a2d 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -1016,7 +1016,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); |