repolist: make owner clickable to search Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld Jason@zx2c4.com
Thu, 16 Jan 2014 22:54:23 +0100
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
ui-repolist.c
→
ui-repolist.c
@@ -306,7 +306,13 @@ html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc);
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);