1
0
mirror of https://gitea.quitesimple.org/crtxcr/cgitsb synced 2024-11-23 12:42:19 +01:00

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>
This commit is contained in:
John Keeping 2014-08-01 22:14:18 +01:00 committed by Jason A. Donenfeld
parent bbfa006e6e
commit d31be4ccc2

@ -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");
}