mirror of
https://git.zx2c4.com/cgit
synced 2024-11-24 17:38:41 +00:00
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>
This commit is contained in:
parent
e32f8416e8
commit
3295155a0c
@ -1016,7 +1016,13 @@ static void print_header(void)
|
|||||||
if (ctx.repo) {
|
if (ctx.repo) {
|
||||||
html_txt(ctx.repo->desc);
|
html_txt(ctx.repo->desc);
|
||||||
html("</td><td class='sub right'>");
|
html("</td><td class='sub right'>");
|
||||||
|
if (ctx.repo->owner_filter) {
|
||||||
|
cgit_open_filter(ctx.repo->owner_filter);
|
||||||
html_txt(ctx.repo->owner);
|
html_txt(ctx.repo->owner);
|
||||||
|
cgit_close_filter(ctx.repo->owner_filter);
|
||||||
|
} else {
|
||||||
|
html_txt(ctx.repo->owner);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ctx.cfg.root_desc)
|
if (ctx.cfg.root_desc)
|
||||||
html_txt(ctx.cfg.root_desc);
|
html_txt(ctx.cfg.root_desc);
|
||||||
|
Loading…
Reference in New Issue
Block a user