]> granicus.if.org Git - cgit/commitdiff
ui-repolist: provide hyperlinks on section names
authorAndy Doan <andy.doan@linaro.org>
Tue, 13 Sep 2016 03:54:07 +0000 (22:54 -0500)
committerJohn Keeping <john@keeping.me.uk>
Sat, 1 Oct 2016 10:50:13 +0000 (11:50 +0100)
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>
ui-repolist.c

index 30915df283b7ea1b7ae9800229153e94a84c7d29..3f967a8d63ba3db60bd1336f4847e234b88c9e61 100644 (file)
@@ -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;
                }