summaryrefslogtreecommitdiffstats
path: root/template/en/default/index.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-13 02:13:34 +0200
committerlpsolit%gmail.com <>2006-06-13 02:13:34 +0200
commit3e81855fc65b49d05bf0dc0d1a1cf1b1b044f8f4 (patch)
treeae6ebca77c751c1ac29bede5340fa8ba308494ca /template/en/default/index.html.tmpl
parente36503867847944db6ef44491f0e8343b5faa591 (diff)
downloadbugzilla-3e81855fc65b49d05bf0dc0d1a1cf1b1b044f8f4.tar.gz
bugzilla-3e81855fc65b49d05bf0dc0d1a1cf1b1b044f8f4.tar.xz
Bug 330487: Automatic Update Notification for Bugzilla - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'template/en/default/index.html.tmpl')
-rw-r--r--template/en/default/index.html.tmpl35
1 files changed, 34 insertions, 1 deletions
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() {
//-->
</script>
+[% IF release %]
+ <div id="new_release">
+ [% IF release.data %]
+ [% IF release.deprecated %]
+ <p>[% terms.Bugzilla %] [%+ release.deprecated FILTER html %] is no longer
+ supported. You are highly encouraged to upgrade in order to keep your
+ system secure.</p>
+ [% END %]
+
+ <p>A new [% terms.Bugzilla %] version ([% release.data.latest_ver FILTER html %])
+ is available at
+ <a href="[% release.data.url FILTER html %]">[% release.data.url FILTER html %]</a>.<br>
+ Release date: [% release.data.date FILTER html %]</p>
+
+ <p class="notice">This message is only shown to logged in users with admin privs.
+ You can configure this notification from the
+ <a href="editparams.cgi?section=core#upgrade_notification">Parameters</a> page.</p>
+ [% ELSIF release.error == "no_update" %]
+ <p>The local XML file '[% release.xml_file FILTER html %]' cannot be updated.
+ Please make sure the web server can edit this file.</p>
+ [% ELSIF release.error == "no_access" %]
+ <p>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.</p>
+ [% ELSIF release.error == "corrupted" %]
+ <p>The local XML file '[% release.xml_file FILTER html %]' has an invalid XML format.
+ Please delete it and try accessing this page again.</p>
+ [% ELSIF release.error == "unknown_parameter" %]
+ <p>'[% Param("upgrade_notification") FILTER html %]' is not a valid notification
+ parameter. Please check this parameter in the
+ <a href="editparams.cgi?section=core#upgrade_notification">Parameters</a> page.</p>
+ [% END %]
+ </div>
+[% END %]
<div id="page-index">
<div class="intro"></div>