]> granicus.if.org Git - cgit/commitdiff
ui-shared: use owner-filter for repo page headers
authorJune McEnroe <june@causal.agency>
Thu, 4 Feb 2021 22:10:14 +0000 (17:10 -0500)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 19 Dec 2022 15:13:24 +0000 (16:13 +0100)
Previously it was only used if owners were displayed on the index.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ui-shared.c

index f880c4e52498b21ccc2b0e71137ef6ea8dc610ec..fbf5a2d9dbe0bca892bd8f65071eac809c2667d2 100644 (file)
@@ -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);