]> git.deb.at Git - deb/packages.git/blob - templates/rss/newpkg.tmpl
DoShow: Add Pre-Depends to dependency output
[deb/packages.git] / templates / rss / newpkg.tmpl
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <rdf:RDF
4  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
5  xmlns="http://purl.org/rss/1.0/"
6  xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
7  xmlns:dc="http://purl.org/dc/elements/1.1/"
8  xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
9  xmlns:admin="http://webns.net/mvcb/"
10 >
11
12 [%- root_url = "$packages_homepage$suite/";
13     SET root_url = "$root_url$section/" IF section -%]
14
15 <channel rdf:about="[% root_url %]newpkg">
16 <title>New [% organisation %] Packages</title>
17 <link>[% root_url %]newpkg</link>
18 <description>Packages that were added to the [% suite %] [% organisation %] archive [% " (section \"$section\")" IF section %] during the last 7 days.</description>
19 <dc:language>en</dc:language>
20 <dc:rights>Copyright [% timestamp.year %], [% copyright.name %]</dc:rights>
21 <dc:date>[% rss_timestamp %]</dc:date>
22 <dc:publisher>[% contact.mail %]</dc:publisher>
23 <syn:updatePeriod>weekly</syn:updatePeriod>
24 <syn:updateFrequency>2</syn:updateFrequency>
25 [% FOREACH pkg IN new_packages %]
26  [%- IF loop.first %]
27  <items>
28   <rdf:Seq>
29  [% END -%]
30 <rdf:li rdf:resource="[% root_url _ pkg.0 %]" />
31  [% IF loop.last -%]
32   </rdf:Seq>
33  </items>
34  [% END -%]
35 [% END -%]
36 </channel>
37
38 [%- FOREACH pkg IN new_packages %]
39 <item rdf:about="[% root_url _ pkg.0 %]">
40 <title>[% pkg.0 %]</title>
41 <link>[% root_url _ pkg.0 %]</link>
42 <description>[% pkg.-1 %]</description>
43 <dc:subject>[% pkg.6 %]</dc:subject>
44 </item>
45 [% END -%]
46
47 </rdf:RDF>