[% USE date -%]
[%- SET adv = advdb.advisories.$advisory -%]
[% advisory %] - [% adv.subject %]

Publication date: [% date.format(adv.status.published, format => '%d %b %Y', gmt => 1) %]
URL: [% config.site_url %]/[% basename.ID(advisory) %].html
Type: [% adv.type %]
Affected Mageia releases: [% adv.src.keys.sort.join(', ') %]
[% IF adv.CVE && adv.CVE.list.size != 0 -%]
CVE: [% adv.CVE.join(",\n     ") %]
[% END -%]

Description:
[% adv.description -%]

References:
[% FOREACH ref IN adv.references -%]
- [% ref %]
[% END -%]
[% IF adv.CVE -%]
[% FOREACH cve IN adv.CVE.list -%]
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=[% cve %]
[% END -%]
[% END -%]

SRPMS:
[% FOREACH rel IN adv.src.keys.sort -%]
[% FOREACH media IN adv.src.$rel.keys.sort -%]
[% FOREACH srpm IN adv.src.$rel.$media -%]
- [% rel %]/[% media %]/[% srpm %]
[% END -%]
[% END -%]
[% END -%]

