List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: [PATCH 2/3] ui-summary: add "rel='vcs-git'" to clone URL links
Date: Fri,  1 Aug 2014 22:14:18 +0100	[thread overview]
Message-ID: <40ac4d8d19663600ec67ade15c16e1be766c8521.1406927659.git.john@keeping.me.uk> (raw)
In-Reply-To: <32c0e49ef9eccdcc96d20c2240cd90a7d4062993.1406927659.git.john@keeping.me.uk>

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

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

Signed-off-by: John Keeping <john at keeping.me.uk>
---
 ui-summary.c | 6 ++++--
 1 file 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)
 		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");
 }
-- 
2.0.3.890.g700db9e



  reply	other threads:[~2014-08-01 21:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 21:14 [PATCH 1/3] Extract clone URL printing to ui-shared.c john
2014-08-01 21:14 ` john [this message]
2014-08-01 21:14 ` [PATCH 3/3] ui-shared: add rel-vcs microformat links to HTML header john
2014-12-24  2:05   ` Jason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40ac4d8d19663600ec67ade15c16e1be766c8521.1406927659.git.john@keeping.me.uk \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).