aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/advisories_table.html
blob: 6702ace3aeb8657d4b85478fd3ce10db209889c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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>