aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/advisory_item.rss
blob: 73d9a7b1617489d1ac961339a348dedb6e38714d (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
[% SET advisory = advdb.advisories.$adv -%]
        <item>
            <title>[% adv %] - [% 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;
        [%- 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="[% ref %]"&gt;[% ref %]&lt;/a&gt;&lt;/li&gt;
            [% 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>