aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/advisory.html
blob: ed5956120dc8370db8fdda7dd0f4792b62da0f67 (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
[% 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="[% basename.rel(rel) %].html">[% rel %]</a>
        [% END %]
        <br />

        [% SET sep = '' %]
        [% IF adv.CVE.list.size != 0 %]
        CVE:
        [% FOREACH cve IN adv.CVE %]
        [% sep %]
        [% SET sep = ', ' %]
        <a href="[% basename.CVE(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>