]> granicus.if.org Git - cgit/commitdiff
ui-summary: add "rel='vcs-git'" to clone URL links
authorJohn Keeping <john@keeping.me.uk>
Fri, 1 Aug 2014 21:14:18 +0000 (22:14 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 24 Dec 2014 02:04:13 +0000 (19:04 -0700)
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

index 70ea908d8547b87c0865ab4890418913141ff435..46ca71349f8649369500a4f7e3304959acc674ab 100644 (file)
@@ -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");
 }