List for cgit developers and users
 help / color / mirror / Atom feed
From: zwinkau at kit.edu (zwinkau at kit.edu)
Subject: [PATCH 7/8] add <link rel='self'> to atom feed
Date: Tue,  1 Jul 2014 09:40:32 +0200	[thread overview]
Message-ID: <1404200433-30081-7-git-send-email-zwinkau@kit.edu> (raw)
In-Reply-To: <1404200433-30081-1-git-send-email-zwinkau@kit.edu>

From: Matthias Braun <matze at braunis.de>

FEED Validator recommends it.
---
 ui-atom.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/ui-atom.c b/ui-atom.c
index 4d9ba00..6da3e36 100644
--- a/ui-atom.c
+++ b/ui-atom.c
@@ -150,6 +150,17 @@ void cgit_print_atom(char *tip, char *path, int max_count, int enable_atom_diff)
 		html_attr(cgit_repourl(ctx.repo->url));
 		html("'/>\n");
 
+		html("<link rel='self' type='application/atom+xml' href='");
+		html(cgit_httpscheme());
+		html_attr(host);
+		html_attr(cgit_repourl(ctx.repo->url));
+		html("atom");
+		if (tip) {
+			html("/?h=");
+			html_txt(tip);
+		}
+		html("'/>\n");
+
 		html("<id>");
 		html(cgit_httpscheme());
 		html_txt(host);
-- 
1.9.1



  parent reply	other threads:[~2014-07-01  7:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01  7:40 [PATCH 1/8] Can add diffs to Atom feed entries zwinkau
2014-07-01  7:40 ` [PATCH 2/8] Improved readability zwinkau
2014-07-01  7:40 ` [PATCH 3/8] Skip forbidden characters zwinkau
2014-07-01 20:29   ` john
2014-07-02 11:57     ` qznc
2014-07-01  7:40 ` [PATCH 4/8] add xml-header to atom-feed zwinkau
2014-07-01  7:40 ` [PATCH 5/8] display updated, use urn/url for atom:id zwinkau
2014-07-01  7:40 ` [PATCH 6/8] only one content tag allowed, so remove the text one zwinkau
2014-07-01  7:40 ` zwinkau [this message]
2014-07-01  7:40 ` [PATCH 8/8] fix html error in diff output for binary files zwinkau

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=1404200433-30081-7-git-send-email-zwinkau@kit.edu \
    --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).