diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-06-17 16:23:28 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-06-17 16:23:28 +0000 |
commit | dc7f301d1dcc35643484f2c88f6e41eed41b67d8 (patch) | |
tree | 2619ed3fb135f1925e9c2963c5942a6ebef9e62c /tmpl | |
parent | b5c7118178269a1674f368eae22045be766dd4c4 (diff) | |
download | mgaadvisories-dc7f301d1dcc35643484f2c88f6e41eed41b67d8.tar mgaadvisories-dc7f301d1dcc35643484f2c88f6e41eed41b67d8.tar.gz mgaadvisories-dc7f301d1dcc35643484f2c88f6e41eed41b67d8.tar.bz2 mgaadvisories-dc7f301d1dcc35643484f2c88f6e41eed41b67d8.tar.xz mgaadvisories-dc7f301d1dcc35643484f2c88f6e41eed41b67d8.zip |
Fix display of publication date
Diffstat (limited to 'tmpl')
-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 |
4 files changed, 4 insertions, 4 deletions
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 = '' %] |