From dc7f301d1dcc35643484f2c88f6e41eed41b67d8 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 17 Jun 2013 16:23:28 +0000 Subject: Fix display of publication date --- NEWS | 2 ++ tmpl/advisories_table.html | 2 +- tmpl/advisory.html | 2 +- tmpl/advisory.txt | 2 +- tmpl/advisory_item.rss | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 9cd382d..3def534 100644 --- a/NEWS +++ b/NEWS @@ -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 %] - [% 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) %] [% adv %] 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 @@

[% 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) %]
Type: [% adv.type %]
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 @@ [% advisory.type %] - 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 = '' %] -- cgit v1.2.1