]> gitweb.ps.run Git - ps-cgit/commitdiff
repolist: make owner clickable to search
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 16 Jan 2014 21:54:23 +0000 (22:54 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 17 Jan 2014 13:01:27 +0000 (14:01 +0100)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ui-repolist.c

index 92e80cf7adbb9b754e4f8a635ee928d94a958898..477a9495f09d9b2cda9c26e292bb8f5398ddfbec 100644 (file)
@@ -306,7 +306,13 @@ void cgit_print_repolist()
                html_link_close();
                html("</td><td>");
                if (ctx.cfg.enable_index_owner) {
+                       html("<a href='");
+                       html_attr(cgit_rooturl());
+                       html("?q=");
+                       html_url_arg(ctx.repo->owner);
+                       html("'>");
                        html_txt(ctx.repo->owner);
+                       html("</a>");
                        html("</td><td>");
                }
                print_modtime(ctx.repo);