aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-12 21:47:03 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-12 21:47:03 +0000
commit91a88f15bee9a3f3f415fe183b1cb5817a5d33ba (patch)
tree6fb1044984662db33263e1725702e1f0c534723b
parent72db6c762fdead109a7dfbe0686331ecea932718 (diff)
downloadmgaadvisories-91a88f15bee9a3f3f415fe183b1cb5817a5d33ba.tar
mgaadvisories-91a88f15bee9a3f3f415fe183b1cb5817a5d33ba.tar.gz
mgaadvisories-91a88f15bee9a3f3f415fe183b1cb5817a5d33ba.tar.bz2
mgaadvisories-91a88f15bee9a3f3f415fe183b1cb5817a5d33ba.tar.xz
mgaadvisories-91a88f15bee9a3f3f415fe183b1cb5817a5d33ba.zip
Add advisories html pages
-rw-r--r--NEWS2
-rw-r--r--tmpl/advisory.html57
-rw-r--r--tmpl/index.html2
3 files changed, 60 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6f91e95..a86f3e5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- add advisories html pages
+
Version 0.1
- first version
diff --git a/tmpl/advisory.html b/tmpl/advisory.html
new file mode 100644
index 0000000..f9a7e63
--- /dev/null
+++ b/tmpl/advisory.html
@@ -0,0 +1,57 @@
+[% USE date -%]
+[%- SET adv = advdb.advisories.$advisory -%]
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Mageia Advisory: [% advisory %] - [% adv.subject %]</title>
+ </head>
+ <body>
+ <h1>[% advisory %] - [% adv.subject %]</h1>
+
+ Publication date: [% date.format(adv.pubtime, format => '%d %b %Y', gmt => 1) %]<br />
+ Type: [% adv.type %]<br />
+ Affected Mageia releases :
+ [% SET sep = '' %]
+ [% FOREACH rel IN adv.src.keys.sort %]
+ [% sep %]
+ [% SET sep = ', ' %]
+ <a href="[% rel %].html">[% rel %]</a>
+ [% END %]
+ <br />
+
+ [% SET sep = '' %]
+ [% IF adv.CVE %]
+ CVE:
+ [% FOREACH cve IN adv.CVE %]
+ [% sep %]
+ [% SET sep = ', ' %]
+ <a href="[% cve %].html">[% cve %]</a>
+ [% END %]
+ [% END %]
+
+ <h2>Description</h2>
+ <pre>
+ [%- adv.description -%]
+ </pre>
+
+ <h2>References</h2>
+ <ul>
+ [% FOREACH ref IN adv.references -%]
+ <li><a href="[% ref %]">[% ref %]</a></li>
+ [% END %]
+ </ul>
+
+ <h2>SRPMS</h2>
+ [% FOREACH rel IN adv.src.keys -%]
+ [% FOREACH media IN adv.src.$rel.keys -%]
+ <h3>[% rel %]/[% media %]</h3>
+ <ul>
+ [% FOREACH srpm IN adv.src.$rel.$media -%]
+ <li>[% srpm %]</li>
+ [% END -%]
+ </ul>
+ [% END -%]
+ [% END -%]
+
+ </body>
+</html>
diff --git a/tmpl/index.html b/tmpl/index.html
index 8bfda2d..f084cc8 100644
--- a/tmpl/index.html
+++ b/tmpl/index.html
@@ -8,7 +8,7 @@
<h1>Mageia Advisories</h1>
<ul>
[%- FOREACH adv IN advdb.advisories.keys.sort.reverse -%]
- <li><a href="[% adv %].txt">[% adv %]</a>: [% advdb.advisories.$adv.subject %]</li>
+ <li><a href="[% adv %].html">[% adv %]</a>: [% advdb.advisories.$adv.subject %]</li>
[%- END -%]
</ul>
<h1>Older Advisories</h1>