aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/advisory.html
blob: dda79a4853a35ec080361e7d0c4c0df3fd02e990 (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
66
67
68
69
70
71
72
73
74
75
76
[% 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>
        [%- INCLUDE head.html -%]
    </head>
    <body>
        [%- INCLUDE body_top.html -%]
        <h1 id='mgnavt'><a href="index.html">Advisories</a> » [% advisory %]</h1>

        <div class='content'>
            <div class='section'>
                <h2>[% adv.subject %]</h2>

                Publication date: [% date.format(adv.status.published, format => '%d %b %Y', gmt => 1) %]<br />
                Modification date: [% date.format(adv.status.modified, 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 && adv.CVE.list.size != 0 %]
                CVE:
                [% FOREACH cve IN adv.CVE %]
                [% sep %]
                [% SET sep = ', ' %]
                <a href="[% basename.CVE(cve) %].html">[% cve %]</a>
                [% END %]
                [% END %]
            </div>

            <div class='section'>
                <h2>Description</h2>
                <pre>
                [%- adv.description -%]
                </pre>
            </div>

            <div class='section'>
                <h2>References</h2>
                <ul>
                    [% FOREACH ref IN adv.references -%]
                    <li><a href="[% ref %]">[% ref %]</a></li>
                    [% END %]
                    [%- IF adv.CVE -%]
                    [%- FOREACH cve IN adv.CVE.list -%]
                    <li><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=[% cve %]">https://cve.mitre.org/cgi-bin/cvename.cgi?name=[% cve %]</a></li>
                    [%- END -%]
                    [%- END -%]
                </ul>
            </div>

            <div class='section'>
                <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 -%]
            </div>
        </div>
    </body>
</html>