diff options
author | Andy Doan <andy.doan@linaro.org> | 2016-09-13 05:54:07 +0200 |
---|---|---|
committer | John Keeping <john@keeping.me.uk> | 2016-10-01 12:50:13 +0200 |
commit | 84b158abe04ca37eb6e3038d3b63a9518714b66d (patch) | |
tree | 6647fe9313f4c2d7aa520a1441af7c9bd284c135 | |
parent | e18a85b6a298feef88da8085ef16fd20ce971071 (diff) | |
download | cgit-84b158abe04ca37eb6e3038d3b63a9518714b66d.tar.gz cgit-84b158abe04ca37eb6e3038d3b63a9518714b66d.tar.xz |
ui-repolist: provide hyperlinks on section names
This makes it easier to traverse into a section of git repositories.
Signed-off-by: Andy Doan <andy.doan@linaro.org>
Signed-off-by: John Keeping <john@keeping.me.uk>
-rw-r--r-- | ui-repolist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 30915df..3f967a8 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -322,7 +322,11 @@ void cgit_print_repolist(void) strcmp(section, last_section)))) { htmlf("<tr class='nohover'><td colspan='%d' class='reposection'>", columns); + html("<a href='"); + html_attr(section); + html("'>"); html_txt(section); + html("</a>"); html("</td></tr>"); last_section = section; } |