This is described in the rel-vcs microformat[1].

[1] https://joeyh.name/rfc/rel-vcs/

Signed-off-by: John Keeping <j...@keeping.me.uk>
---
 ui-summary.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ui-summary.c b/ui-summary.c
index 70ea908..46ca713 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -31,9 +31,11 @@ static void print_url(const char *url)
                htmlf("<tr><th class='left' colspan='%d'>Clone</th></tr>\n", 
columns);
        }
 
-       htmlf("<tr><td colspan='%d'><a href='", columns);
+       htmlf("<tr><td colspan='%d'><a rel='vcs-git' href='", columns);
        html_url_path(url);
-       html("'>");
+       html("' title='");
+       html_attr(ctx.repo->name);
+       html(" Git repository'>");
        html_txt(url);
        html("</a></td></tr>\n");
 }
-- 
2.0.3.890.g700db9e

_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit

Reply via email to