Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2016-09-13 06:54:07 +0300
committerJohn Keeping <john@keeping.me.uk>2016-10-01 13:50:13 +0300
commit84b158abe04ca37eb6e3038d3b63a9518714b66d (patch)
tree6647fe9313f4c2d7aa520a1441af7c9bd284c135
parente18a85b6a298feef88da8085ef16fd20ce971071 (diff)
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.c4
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;
}