diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | tmpl/advisories_table.html | 2 | ||||
-rw-r--r-- | tmpl/advisory.html | 2 | ||||
-rw-r--r-- | tmpl/advisory.txt | 2 | ||||
-rw-r--r-- | tmpl/advisory_item.rss | 2 |
5 files changed, 6 insertions, 4 deletions
@@ -1,3 +1,5 @@ +- fix display of publication date + Version 0.8 - add 'no_mail' option in advisory file to disable advisory mail diff --git a/tmpl/advisories_table.html b/tmpl/advisories_table.html index 6702ace..5dcca66 100644 --- a/tmpl/advisories_table.html +++ b/tmpl/advisories_table.html @@ -23,7 +23,7 @@ [% FOREACH adv IN advlst %] <tr> <td width='100'> - [% date.format(advdb.advisories.$adv.pubtime, format => '%Y-%m-%d', gmt => 1) %] + [% date.format(advdb.advisories.$adv.status.published, format => '%Y-%m-%d', gmt => 1) %] </td> <td width='150'><a href="[% basename.ID(adv) %].html">[% adv %]</a></td> <td> diff --git a/tmpl/advisory.html b/tmpl/advisory.html index ed59561..394fc7c 100644 --- a/tmpl/advisory.html +++ b/tmpl/advisory.html @@ -8,7 +8,7 @@ <body> <h1>[% advisory %] - [% adv.subject %]</h1> - Publication date: [% date.format(adv.pubtime, format => '%d %b %Y', gmt => 1) %]<br /> + Publication date: [% date.format(adv.status.published, format => '%d %b %Y', gmt => 1) %]<br /> Type: [% adv.type %]<br /> Affected Mageia releases : [% SET sep = '' %] diff --git a/tmpl/advisory.txt b/tmpl/advisory.txt index 2094722..016df71 100644 --- a/tmpl/advisory.txt +++ b/tmpl/advisory.txt @@ -2,7 +2,7 @@ [%- SET adv = advdb.advisories.$advisory -%] [% advisory %] - [% adv.subject %] -Publication date: [% date.format(adv.pubtime, format => '%d %b %Y', gmt => 1) %] +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(', ') %] diff --git a/tmpl/advisory_item.rss b/tmpl/advisory_item.rss index 186c2f8..9edfe05 100644 --- a/tmpl/advisory_item.rss +++ b/tmpl/advisory_item.rss @@ -7,7 +7,7 @@ <category>[% advisory.type %]</category> <description> - Publication date: [% date.format(advisory.pubtime, format => '%d %b %Y', gmt => 1) %]<br /> + Publication date: [% date.format(advisory.status.published, format => '%d %b %Y', gmt => 1) %]<br /> Type: [% advisory.type %]<br /> Affected Mageia releases : [% SET sep = '' %] |