From 3e81855fc65b49d05bf0dc0d1a1cf1b1b044f8f4 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 13 Jun 2006 00:13:34 +0000 Subject: =?UTF-8?q?Bug=20330487:=20Automatic=20Update=20Notification=20for?= =?UTF-8?q?=20Bugzilla=20-=20Patch=20by=20Fr=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dmkanat=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/index.html.tmpl | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'template/en/default/index.html.tmpl') diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl index c8474494d..1dd81dac2 100644 --- a/template/en/default/index.html.tmpl +++ b/template/en/default/index.html.tmpl @@ -23,7 +23,7 @@ #%] [%# INTERFACE: - # This template has no interface. + # release: a hash containing data about new releases, if any. #%] [% PROCESS global/variables.none.tmpl %] @@ -56,6 +56,39 @@ function addSidebar() { //--> +[% IF release %] +
+ [% IF release.data %] + [% IF release.deprecated %] +

[% terms.Bugzilla %] [%+ release.deprecated FILTER html %] is no longer + supported. You are highly encouraged to upgrade in order to keep your + system secure.

+ [% END %] + +

A new [% terms.Bugzilla %] version ([% release.data.latest_ver FILTER html %]) + is available at + [% release.data.url FILTER html %].
+ Release date: [% release.data.date FILTER html %]

+ +

This message is only shown to logged in users with admin privs. + You can configure this notification from the + Parameters page.

+ [% ELSIF release.error == "no_update" %] +

The local XML file '[% release.xml_file FILTER html %]' cannot be updated. + Please make sure the web server can edit this file.

+ [% ELSIF release.error == "no_access" %] +

The local XML file '[% release.xml_file FILTER html %]' cannot be read. + Please make sure this file exists and has the correct rights set on it.

+ [% ELSIF release.error == "corrupted" %] +

The local XML file '[% release.xml_file FILTER html %]' has an invalid XML format. + Please delete it and try accessing this page again.

+ [% ELSIF release.error == "unknown_parameter" %] +

'[% Param("upgrade_notification") FILTER html %]' is not a valid notification + parameter. Please check this parameter in the + Parameters page.

+ [% END %] +
+[% END %]
-- cgit v1.2.1