Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commita2b6b3717567a5b57a19d19ed89af324296f39a9 (patch)
Author
 Jason A. Donenfeld <Jason@zx2c4.com>
2014-01-16 22:54:23 +0100
Committer
 Jason A. Donenfeld <Jason@zx2c4.com>
2014-01-17 14:01:27 +0100
Filescb9cdd85d19d6d4ba8325ffcfc40160c3b87b857
cgit-a2b6b3717567a5b57a19d19ed89af324296f39a9.tar
cgit-a2b6b3717567a5b57a19d19ed89af324296f39a9.tar.gz
cgit-a2b6b3717567a5b57a19d19ed89af324296f39a9.zip
Parent3cbbb8ea39d7a85cb5d3c14f81abb174a8b49b95 (diff)
repolist: make owner clickable to search
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 files changed, 6 insertions, 0 deletions
-rw-r--r--ui-repolist.c6
diff --git a/ui-repolist.c b/ui-repolist.c
index 92e80cf..477a949 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -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);