Add rss tag in the changelog/filelog html template.
Goffredo Baroncelli
kreijack at libero.it
Thu Jul 7 15:45:10 CDT 2005
With this patch konqueror and firefox detect that there is a rss feed.
# HG changeset patch
# User kreijack at inwind.REMOVEME.it
# Node ID 20edcc82038fce8460076ca5723fbbb919016356
# Parent 8c89408a7154d2da94766e957a088407fd0fef93
Add rss tag in the changelog/filelog html template.
This patch add rss tags in the changelog/filelog template
html pages. This tags permit the browser to detect the rss feed.
diff -r 8c89408a7154 -r 20edcc82038f templates/changelog.tmpl
--- a/templates/changelog.tmpl Thu Jul 7 06:41:56 2005
+++ b/templates/changelog.tmpl Thu Jul 7 20:40:07 2005
@@ -1,12 +1,14 @@
#header#
<title>#repo|escape#: changelog</title>
+<link rel="alternate" type="application/rss+xml"
+ href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
</head>
<body>
<div class="buttons">
<a href="?cmd=tags">tags</a>
<a href="?cmd=manifest;manifest=#manifest#;path=/">manifest</a>
-<a href="?cmd=changelog;style=rss">rss</a>
+<a type="application/rss+xml" href="?cmd=changelog;style=rss">rss</a>
</div>
<h2>changelog for #repo|escape#</h2>
diff -r 8c89408a7154 -r 20edcc82038f templates/filelog.tmpl
--- a/templates/filelog.tmpl Thu Jul 7 06:41:56 2005
+++ b/templates/filelog.tmpl Thu Jul 7 20:40:07 2005
@@ -1,5 +1,8 @@
#header#
<title>#repo|escape#: #file# history</title>
+<link rel="alternate" type="application/rss+xml"
+ href="?cmd=filelog;file=#file#;filenode=0;style=rss" title="RSS feed for #repo|escape#:#file#">
+</head>
</head>
<body>
@@ -8,7 +11,7 @@
<a href="?cmd=tags">tags</a>
<a href="?cmd=file;file=#file#;filenode=#filenode#">file</a>
<a href="?cmd=annotate;file=#file#;filenode=#filenode#">annotate</a>
-<a href="?cmd=filelog;file=#file#;filenode=0;style=rss">rss</a>
+<a type="application/rss+xml" href="?cmd=filelog;file=#file#;filenode=0;style=rss">rss</a>
</div>
<h2>#file# revision history</h2>
Goffredo
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack AT inwind DOT it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20050707/25bac2ac/attachment.pgp
More information about the Mercurial
mailing list