[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgit
Subject:    [PATCHv3 1/2] ui-repolist: provide hyperlinks on section names
From:       Andy Doan <andy.doan () linaro ! org>
Date:       2016-09-13 3:54:07
Message-ID: 1473738848-1636-2-git-send-email-andy.doan () linaro ! org
[Download RAW message or body]

This makes it easier to traverse into a section of git repositories.

Signed-off-by: Andy Doan <andy.doan@linaro.org>
---
 ui-repolist.c | 4 ++++
 1 file changed, 4 insertions(+)

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;
 		}
-- 
2.7.4

_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic