changeset 13858:1046cb663776 stable

hgweb: add missing bookmarks templates to atom/rss styles It's already referenced from paper style.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 03 Apr 2011 22:53:19 +0900
parents f911b1de5fa0
children 78acaca60243
files mercurial/templates/atom/bookmarkentry.tmpl mercurial/templates/atom/bookmarks.tmpl mercurial/templates/atom/map mercurial/templates/rss/bookmarkentry.tmpl mercurial/templates/rss/bookmarks.tmpl mercurial/templates/rss/map
diffstat 6 files changed, 35 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/atom/bookmarkentry.tmpl	Sun Apr 03 22:53:19 2011 +0900
@@ -0,0 +1,8 @@
+ <entry>
+  <title>{bookmark|escape}</title>
+  <link rel="alternate" href="{urlbase}{url}rev/{node|short}"/>
+  <id>{urlbase}{url}#bookmark-{node}</id>
+  <updated>{date|rfc3339date}</updated>
+  <published>{date|rfc3339date}</published>
+  <content type="text">{bookmark|strip|escape}</content>
+ </entry>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/atom/bookmarks.tmpl	Sun Apr 03 22:53:19 2011 +0900
@@ -0,0 +1,11 @@
+{header}
+ <id>{urlbase}{url}</id>
+ <link rel="self" href="{urlbase}{url}atom-bookmarks"/>
+ <link rel="alternate" href="{urlbase}{url}bookmarks"/>
+ <title>{repo|escape}: bookmarks</title>
+ <summary>{repo|escape} bookmark history</summary>
+ <author><name>Mercurial SCM</name></author>
+ {latestentry%feedupdated}
+
+{entries%bookmarkentry}
+</feed>
--- a/mercurial/templates/atom/map	Fri Apr 01 13:25:26 2011 -0500
+++ b/mercurial/templates/atom/map	Sun Apr 03 22:53:19 2011 +0900
@@ -8,4 +8,6 @@
 filelogentry = filelogentry.tmpl
 tags = tags.tmpl
 tagentry = tagentry.tmpl
+bookmarks = bookmarks.tmpl
+bookmarkentry = bookmarkentry.tmpl
 error = error.tmpl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/rss/bookmarkentry.tmpl	Sun Apr 03 22:53:19 2011 +0900
@@ -0,0 +1,6 @@
+<item>
+    <title>{bookmark|escape}</title>
+    <link>{urlbase}{url}rev/{node|short}</link>
+    <description><![CDATA[{bookmark|strip|escape|addbreaks}]]></description>
+    <pubDate>{date|rfc822date}</pubDate>
+</item>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/templates/rss/bookmarks.tmpl	Sun Apr 03 22:53:19 2011 +0900
@@ -0,0 +1,6 @@
+{header}
+    <title>{repo|escape}: bookmarks </title>
+    <description>{repo|escape} bookmark history</description>
+    {entries%bookmarkentry}
+  </channel>
+</rss>
--- a/mercurial/templates/rss/map	Fri Apr 01 13:25:26 2011 -0500
+++ b/mercurial/templates/rss/map	Sun Apr 03 22:53:19 2011 +0900
@@ -7,4 +7,6 @@
 filelogentry = filelogentry.tmpl
 tags = tags.tmpl
 tagentry = tagentry.tmpl
+bookmarks = bookmarks.tmpl
+bookmarkentry = bookmarkentry.tmpl
 error = error.tmpl