aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/advisory_item.rss
blob: 99c73d88c26181c043b80e82ee59845d319cbe3d (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
[%- USE HTML -%]
[% SET advisory = advdb.advisories.$adv -%]
        <item>
            <title>[% adv %] - [% HTML.escape(advisory.subject) %]</title>
            <link>[% config.site_url %]/[% basename.ID(adv) %].html</link>
            <guid isPermaLink="false">[% adv %]</guid>
            <pubDate>[% date.format(advisory.status.published, format => '%a, %d %b %Y %H:%M:%S', gmt => 1) %] GMT</pubDate>
            <category>[% advisory.type %]</category>
            <description>

        Publication date: [% date.format(advisory.status.published, format => '%d %b %Y', gmt => 1) %]&lt;br /&gt;
        Type: [% advisory.type %]&lt;br /&gt;
        Affected Mageia releases :
        [% SET sep = '' %]
        [% FOREACH rel IN advisory.src.keys.sort %]
        [% sep %]
        [% SET sep = ', ' %]
        &lt;a href="[% basename.rel(rel) %].html"&gt;[% rel %]&lt;/a&gt;
        [% END %]
        &lt;br /&gt;

        [% SET sep = '' %]
        [% IF advisory.CVE && advisory.CVE.list.size != 0 %]
        CVE:
        [% FOREACH cve IN advisory.CVE %]
        [% sep %]
        [% SET sep = ', ' %]
        &lt;a href="[% basename.CVE(cve) %].html"&gt;[% cve %]&lt;/a&gt;
        [% END %]
        [% END %]

        &lt;h2&gt;Description&lt;/h2&gt;
        &lt;pre&gt;
        [%- HTML.escape(advisory.description) -%]
        &lt;/pre&gt;

        &lt;h2&gt;References&lt;/h2&gt;
        &lt;ul&gt;
            [% FOREACH ref IN advisory.references -%]
            &lt;li&gt;&lt;a href="[% HTML.escape(ref) %]"&gt;[% HTML.escape(ref) %]&lt;/a&gt;&lt;/li&gt;
            [% END %]
            [%- IF advisory.CVE -%]
            [%- FOREACH cve IN advisory.CVE.list -%]
            &lt;li&gt;&lt;a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=[% cve %]"&gt;http://cve.mitre.org/cgi-bin/cvename.cgi?name=[% cve %]&lt;/a&gt;&lt;/li&gt;
            [%- END -%]
            [%- END -%]
        &lt;/ul&gt;

        &lt;h2&gt;SRPMS&lt;/h2&gt;
        [% FOREACH rel IN advisory.src.keys -%]
        [% FOREACH media IN advisory.src.$rel.keys -%]
        &lt;h3&gt;[% rel %]/[% media %]&lt;/h3&gt;
        &lt;ul&gt;
        [% FOREACH srpm IN advisory.src.$rel.$media -%]
                &lt;li&gt;[% srpm %]&lt;/li&gt;
        [% END -%]
        &lt;/ul&gt;
        [% END -%]
        [% END -%]

            </description>
        </item>