aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/by_src.rss
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-13 21:25:47 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-13 21:25:47 +0000
commit598a6147aadc3e3aecca6b2a1f62c86fcf42d6c4 (patch)
treed2e10383baaf0d987e6873a941947c69964f8bd6 /tmpl/by_src.rss
parent4c01a9deaaccf95603e4483a4599335ac39a7e0d (diff)
downloadmgaadvisories-598a6147aadc3e3aecca6b2a1f62c86fcf42d6c4.tar
mgaadvisories-598a6147aadc3e3aecca6b2a1f62c86fcf42d6c4.tar.gz
mgaadvisories-598a6147aadc3e3aecca6b2a1f62c86fcf42d6c4.tar.bz2
mgaadvisories-598a6147aadc3e3aecca6b2a1f62c86fcf42d6c4.tar.xz
mgaadvisories-598a6147aadc3e3aecca6b2a1f62c86fcf42d6c4.zip
Add RSS feeds
Diffstat (limited to 'tmpl/by_src.rss')
-rw-r--r--tmpl/by_src.rss17
1 files changed, 17 insertions, 0 deletions
diff --git a/tmpl/by_src.rss b/tmpl/by_src.rss
new file mode 100644
index 0000000..8f681e6
--- /dev/null
+++ b/tmpl/by_src.rss
@@ -0,0 +1,17 @@
+[%- USE date -%]
+<?xml version="1.0"?>
+
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Mageia Advisories for package [% src %]</title>
+ <link>[% config.site_url %]</link>
+ <description>Mageia Advisories for package [% src %]</description>
+ <language>en</language>
+
+ <atom:link href="[% config.site_url %]/[% basename.src(src) %].rss" rel="self" type="application/rss+xml" />
+
+ [%- FOR adv IN advdb.by_src.$src -%]
+ [% INCLUDE advisory_item.rss %]
+ [%- END -%]
+ </channel>
+</rss>