622
|
1 <?xml version="1.0" encoding="utf-8"?>
|
|
2 <feed xmlns="http://www.w3.org/2005/Atom"
|
|
3 xmlns:py="http://genshi.edgewall.org/">
|
|
4
|
|
5 <title>Geddit: ${link.title}</title>
|
|
6 <id href="${url('/info/%s/' % link.id)}"/>
|
|
7 <link rel="alternate" href="${url('/info/%s/' % link.id)}" type="text/html"/>
|
|
8 <link rel="self" href="${url('/feed/%s/' % link.id)}" type="application/atom+xml"/>
|
631
|
9 <updated py:with="time=link.comments and link.comments[-1].time or link.time">
|
622
|
10 ${time.isoformat()}
|
|
11 </updated>
|
|
12
|
631
|
13 <?python from genshi import HTML ?>
|
622
|
14 <entry py:for="idx, comment in enumerate(reversed(link.comments))">
|
|
15 <title>Comment ${len(link.comments) - idx} on “${link.title}”</title>
|
|
16 <link rel="alternate" href="${url('/info/%s/' % link.id)}#comment${idx}"
|
|
17 type="text/html"/>
|
|
18 <id>${url('/info/%s/' % link.id)}#comment${idx}</id>
|
|
19 <author>
|
|
20 <name>${comment.username}</name>
|
|
21 </author>
|
|
22 <updated>${comment.time.isoformat()}</updated>
|
631
|
23 <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
|
|
24 ${HTML(comment.content)}
|
|
25 </div></content>
|
622
|
26 </entry>
|
|
27
|
|
28 </feed>
|