diff options
author | June McEnroe | 2021-02-04 17:10:14 -0500 |
---|---|---|
committer | Yigit Sever | 2023-07-21 03:03:50 +0300 |
commit | eb5a6288876789a5d8dfe9a8d61340d2efc60122 (patch) | |
tree | dc6ed43ded99722237ab1f3bf0243839ad4aac5d | |
parent | 99a62a8104d38f815bb22b1d84b6a1b457c20383 (diff) | |
download | cgit-eb5a6288876789a5d8dfe9a8d61340d2efc60122.tar.gz cgit-eb5a6288876789a5d8dfe9a8d61340d2efc60122.tar.bz2 cgit-eb5a6288876789a5d8dfe9a8d61340d2efc60122.zip |
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 e9052ff..3afa15e 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -1016,7 +1016,13 @@ static void print_header(void) | |||
1016 | if (ctx.repo) { | 1016 | if (ctx.repo) { |
1017 | html_txt(ctx.repo->desc); | 1017 | html_txt(ctx.repo->desc); |
1018 | html("</td><td class='sub right'>"); | 1018 | html("</td><td class='sub right'>"); |
1019 | html_txt(ctx.repo->owner); | 1019 | if (ctx.repo->owner_filter) { |
1020 | cgit_open_filter(ctx.repo->owner_filter); | ||
1021 | html_txt(ctx.repo->owner); | ||
1022 | cgit_close_filter(ctx.repo->owner_filter); | ||
1023 | } else { | ||
1024 | html_txt(ctx.repo->owner); | ||
1025 | } | ||
1020 | } else { | 1026 | } else { |
1021 | if (ctx.cfg.root_desc) | 1027 | if (ctx.cfg.root_desc) |
1022 | html_txt(ctx.cfg.root_desc); | 1028 | html_txt(ctx.cfg.root_desc); |