all repos — cgit @ d31be4ccc2f978edd2a40c2721e1efdc1eee2343

a hyperfast web frontend for git written in c

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>
John Keeping john@keeping.me.uk
Fri, 01 Aug 2014 22:14:18 +0100
commit

d31be4ccc2f978edd2a40c2721e1efdc1eee2343

parent

bbfa006e6eb93d56842c1d90bbba1c5484afb855

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M ui-summary.cui-summary.c

@@ -31,9 +31,11 @@ htmlf("<tr class='nohover'><td colspan='%d'>&nbsp;</td></tr>", 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"); }