cgit

commit d31be4ccc2f978edd2a40c2721e1efdc1eee2343

Author: John Keeping <john@keeping.me.uk>

ui-summary: add "rel='vcs-git'" to clone URL links

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

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

Signed-off-by: John Keeping <john@keeping.me.uk>

 ui-summary.c | 6 ++++--


diff --git a/ui-summary.c b/ui-summary.c
index 70ea908d8547b87c0865ab4890418913141ff435..46ca71349f8649369500a4f7e3304959acc674ab 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -31,9 +31,11 @@ 		htmlf(" ", columns);
 		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");
 }