diff options
author | John Keeping | 2014-08-01 22:14:18 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2014-12-23 19:04:13 -0700 |
commit | d31be4ccc2f978edd2a40c2721e1efdc1eee2343 (patch) | |
tree | aaf90891179691c153702696ffeca8d558e09b3f | |
parent | bbfa006e6eb93d56842c1d90bbba1c5484afb855 (diff) | |
download | cgit-d31be4ccc2f978edd2a40c2721e1efdc1eee2343.tar.gz cgit-d31be4ccc2f978edd2a40c2721e1efdc1eee2343.tar.bz2 cgit-d31be4ccc2f978edd2a40c2721e1efdc1eee2343.zip |
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>
-rw-r--r-- | ui-summary.c | 6 |
1 files 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) | |||
31 | htmlf("<tr><th class='left' colspan='%d'>Clone</th></tr>\n", columns); | 31 | htmlf("<tr><th class='left' colspan='%d'>Clone</th></tr>\n", columns); |
32 | } | 32 | } |
33 | 33 | ||
34 | htmlf("<tr><td colspan='%d'><a href='", columns); | 34 | htmlf("<tr><td colspan='%d'><a rel='vcs-git' href='", columns); |
35 | html_url_path(url); | 35 | html_url_path(url); |
36 | html("'>"); | 36 | html("' title='"); |
37 | html_attr(ctx.repo->name); | ||
38 | html(" Git repository'>"); | ||
37 | html_txt(url); | 39 | html_txt(url); |
38 | html("</a></td></tr>\n"); | 40 | html("</a></td></tr>\n"); |
39 | } | 41 | } |