]> git.deb.at Git - deb/packages.git/blob - templates/rss/newpkg.tmpl
c95ee53f2b29c13809c25bbb5aac5a90d9d6d3de
[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>[% g('New %s Packages', organisation) %]</title>
17 <link>[% root_url %]newpkg</link>
18 <description>
19 [%- IF section;
20         g('The following packages were added to suite %s (section %s) in the %s archive during the last 7 days.',
21         suite, section, organisation);
22     ELSE;
23         g('The following packages were added to suite %s in the %s archive during the last 7 days.',
24         suite, organisation);
25     END; -%]
26 </description>
27 <dc:language>[% lang %]</dc:language>
28 <dc:rights>[% g('Copyright ©') %] [% timestamp.year %], [% copyright.name %]</dc:rights>
29 <dc:date>[% rss_timestamp %]</dc:date>
30 <dc:publisher>[% contact.mail %]</dc:publisher>
31 <syn:updatePeriod>weekly</syn:updatePeriod>
32 <syn:updateFrequency>2</syn:updateFrequency>
33 [% FOREACH pkg IN new_packages %]
34  [%- IF loop.first %]
35  <items>
36   <rdf:Seq>
37  [% END -%]
38 <rdf:li rdf:resource="[% root_url _ pkg.0 %]" />
39  [% IF loop.last -%]
40   </rdf:Seq>
41  </items>
42  [% END -%]
43 [% END -%]
44 </channel>
45
46 [%- FOREACH pkg IN new_packages %]
47 <item rdf:about="[% root_url _ pkg.0 %]">
48 <title>[% pkg.0 %]</title>
49 <link>[% root_url _ pkg.0 %]</link>
50 <description>[% pkg.-1 | html %]</description>
51 <dc:subject>[% pkg.6 %]</dc:subject>
52 </item>
53 [% END -%]
54
55 </rdf:RDF>