aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/advisories_table.html
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-12 21:47:18 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-12 21:47:18 +0000
commit9834ac78bd45c292bf940a08ad5205100b9a7a40 (patch)
treea3662e3ec9644bceda6ed1b9e97dbb4f2808a739 /tmpl/advisories_table.html
parentc9a20a66af94911ad1fe5bae9f9a15e0c4936a6b (diff)
downloadmgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.tar
mgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.tar.gz
mgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.tar.bz2
mgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.tar.xz
mgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.zip
Add advisories pages by CVE, release, source package
Diffstat (limited to 'tmpl/advisories_table.html')
-rw-r--r--tmpl/advisories_table.html65
1 files changed, 65 insertions, 0 deletions
diff --git a/tmpl/advisories_table.html b/tmpl/advisories_table.html
new file mode 100644
index 0000000..6702ace
--- /dev/null
+++ b/tmpl/advisories_table.html
@@ -0,0 +1,65 @@
+ <table border='0'>
+ <tr>
+ <th>
+ Date
+ </th>
+ <th>
+ ID
+ </th>
+ <th>
+ Source Package(s)
+ </th>
+ <th>
+ Type
+ </th>
+ <th>
+ Affected release(s)
+ </th>
+ <th>
+ CVE
+ </th>
+ </tr>
+
+ [% FOREACH adv IN advlst %]
+ <tr>
+ <td width='100'>
+ [% date.format(advdb.advisories.$adv.pubtime, format => '%Y-%m-%d', gmt => 1) %]
+ </td>
+ <td width='150'><a href="[% basename.ID(adv) %].html">[% adv %]</a></td>
+ <td>
+ [% SET sep = '' %]
+ [% SET pkgs = {} %]
+ [% FOREACH rel IN advdb.advisories.$adv.src.keys %]
+ [% FOREACH media IN advdb.advisories.$adv.src.$rel.keys %]
+ [% FOREACH srpm IN advdb.advisories.$adv.src.$rel.$media %]
+ [% SET srcname = tools.pkgname(srpm) %]
+ [% IF ! pkgs.$srcname %]
+ [% SET pkgs.$srcname = 1 %]
+ [% sep %]
+ [% SET sep = ', ' %]
+ <a href="[% basename.src(srcname) %].html">[% srcname %]</a>
+ [% END %]
+ [% END %]
+ [% END %]
+ [% END %]
+ </td>
+ <td>[% advdb.advisories.$adv.type %]</td>
+ <td>
+ [% SET sep = '' %]
+ [% FOREACH rel IN advdb.advisories.$adv.src.keys %]
+ [% sep %]
+ [% SET sep = ', ' %]
+ <a href="[% basename.rel(rel) %].html">[% rel %]</a>
+ [% END %]
+ </td>
+ <td>
+ [% SET sep = '' %]
+ [% FOREACH cve IN advdb.advisories.$adv.CVE %]
+ [% sep %]
+ [% SET sep = ', ' %]
+ <a href="[% basename.CVE(cve) %].html">[% cve %]</a>
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
+ </table>