aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/advisories.html3
-rw-r--r--tmpl/advisories.rss17
-rw-r--r--tmpl/advisory_item.rss56
-rw-r--r--tmpl/by_rel.html3
-rw-r--r--tmpl/by_rel.rss17
-rw-r--r--tmpl/by_src.html3
-rw-r--r--tmpl/by_src.rss17
-rw-r--r--tmpl/index.html4
8 files changed, 115 insertions, 5 deletions
diff --git a/tmpl/advisories.html b/tmpl/advisories.html
index 7daaeb3..5ff26f1 100644
--- a/tmpl/advisories.html
+++ b/tmpl/advisories.html
@@ -3,9 +3,10 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Mageia Advisories</title>
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="[% config.site_url %]/advisories.rss" />
</head>
<body>
- <h1>Mageia Advisories</h1>
+ <h1>Mageia Advisories <a href="advisories.rss"><img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="rss" /></a></h1>
[% INCLUDE advisories_table.html advlst = advdb.sorted %]
</body>
diff --git a/tmpl/advisories.rss b/tmpl/advisories.rss
new file mode 100644
index 0000000..cdde3c7
--- /dev/null
+++ b/tmpl/advisories.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</title>
+ <link>[% config.site_url %]</link>
+ <description>Mageia Advisories</description>
+ <language>en</language>
+
+ <atom:link href="[% config.site_url %]/advisories.rss" rel="self" type="application/rss+xml" />
+
+ [%- FOR adv IN advdb.sorted -%]
+ [% INCLUDE advisory_item.rss %]
+ [%- END -%]
+ </channel>
+</rss>
diff --git a/tmpl/advisory_item.rss b/tmpl/advisory_item.rss
new file mode 100644
index 0000000..186c2f8
--- /dev/null
+++ b/tmpl/advisory_item.rss
@@ -0,0 +1,56 @@
+[% SET advisory = advdb.advisories.$adv -%]
+ <item>
+ <title>[% adv %] - [% advisory.subject %]</title>
+ <link>[% config.site_url %]/[% basename.ID(adv) %].html</link>
+ <guid isPermaLink="false">[% adv %]</guid>
+ <pubDate>[% date.format(advisory.status.published, format => '%a, %d %b %Y %H:%M:%S', gmt => 1) %] GMT</pubDate>
+ <category>[% advisory.type %]</category>
+ <description>
+
+ Publication date: [% date.format(advisory.pubtime, format => '%d %b %Y', gmt => 1) %]&lt;br /&gt;
+ Type: [% advisory.type %]&lt;br /&gt;
+ Affected Mageia releases :
+ [% SET sep = '' %]
+ [% FOREACH rel IN advisory.src.keys.sort %]
+ [% sep %]
+ [% SET sep = ', ' %]
+ &lt;a href="[% basename.rel(rel) %].html"&gt;[% rel %]&lt;/a&gt;
+ [% END %]
+ &lt;br /&gt;
+
+ [% SET sep = '' %]
+ [% IF advisory.CVE.list.size != 0 %]
+ CVE:
+ [% FOREACH cve IN advisory.CVE %]
+ [% sep %]
+ [% SET sep = ', ' %]
+ &lt;a href="[% basename.CVE(cve) %].html"&gt;[% cve %]&lt;/a&gt;
+ [% END %]
+ [% END %]
+
+ &lt;h2&gt;Description&lt;/h2&gt;
+ &lt;pre&gt;
+ [%- advisory.description -%]
+ &lt;/pre&gt;
+
+ &lt;h2&gt;References&lt;/h2&gt;
+ &lt;ul&gt;
+ [% FOREACH ref IN advisory.references -%]
+ &lt;li&gt;&lt;a href="[% ref %]"&gt;[% ref %]&lt;/a&gt;&lt;/li&gt;
+ [% END %]
+ &lt;/ul&gt;
+
+ &lt;h2&gt;SRPMS&lt;/h2&gt;
+ [% FOREACH rel IN advisory.src.keys -%]
+ [% FOREACH media IN advisory.src.$rel.keys -%]
+ &lt;h3&gt;[% rel %]/[% media %]&lt;/h3&gt;
+ &lt;ul&gt;
+ [% FOREACH srpm IN advisory.src.$rel.$media -%]
+ &lt;li&gt;[% srpm %]&lt;/li&gt;
+ [% END -%]
+ &lt;/ul&gt;
+ [% END -%]
+ [% END -%]
+
+ </description>
+ </item>
diff --git a/tmpl/by_rel.html b/tmpl/by_rel.html
index ac7dc82..883d9f6 100644
--- a/tmpl/by_rel.html
+++ b/tmpl/by_rel.html
@@ -3,9 +3,10 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Mageia [% rel %] Advisories</title>
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="[% config.site_url %]/[% basename.rel(rel) %].rss" />
</head>
<body>
- <h1>Mageia [% rel %] Advisories</h1>
+ <h1>Mageia [% rel %] Advisories <a href="[% basename.rel(rel) %].rss"><img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="rss" /></a></h1>
[% INCLUDE advisories_table.html advlst = advdb.by_rel.$rel %]
</body>
diff --git a/tmpl/by_rel.rss b/tmpl/by_rel.rss
new file mode 100644
index 0000000..0ba3dc8
--- /dev/null
+++ b/tmpl/by_rel.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 [% rel %] Advisories</title>
+ <link>[% config.site_url %]</link>
+ <description>Mageia [% rel %] Advisories</description>
+ <language>en</language>
+
+ <atom:link href="[% config.site_url %]/[% basename.rel(rel) %].rss" rel="self" type="application/rss+xml" />
+
+ [%- FOR adv IN advdb.by_rel.$rel -%]
+ [% INCLUDE advisory_item.rss %]
+ [%- END -%]
+ </channel>
+</rss>
diff --git a/tmpl/by_src.html b/tmpl/by_src.html
index 4e58347..7456918 100644
--- a/tmpl/by_src.html
+++ b/tmpl/by_src.html
@@ -3,9 +3,10 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Mageia advisories for package [% src %]</title>
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="[% config.site_url %]/[% basename.src(src) %].rss" />
</head>
<body>
- <h1>Mageia advisories for package [% src %]</h1>
+ <h1>Mageia advisories for package [% src %] <a href="[% basename.src(src) %].rss"><img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="rss" /></a></h1>
[% INCLUDE advisories_table.html advlst = advdb.by_src.$src %]
</body>
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>
diff --git a/tmpl/index.html b/tmpl/index.html
index 17ce430..3419338 100644
--- a/tmpl/index.html
+++ b/tmpl/index.html
@@ -8,9 +8,9 @@
<h1>Mageia Advisories</h1>
<ul>
[% FOREACH rel IN advdb.by_rel.keys.sort -%]
- <li><a href="[% basename.rel(rel) %].html">Mageia [% rel %] advisories</a></li>
+ <li><a href="[% basename.rel(rel) %].html">Mageia [% rel %] advisories</a> <a href="[% basename.rel(rel) %].rss"><img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="rss" /></a></li>
[%- END -%]
- <li><a href="advisories.html">All advisories</a></li>
+ <li><a href="advisories.html">All advisories</a> <a href="advisories.rss"><img src="http://static.mageia.org/g/images/smi/feed-16x16.png" alt="rss" /></a></li>
</ul>
<h1>CVE list</h1>