diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/admin/params/core.html.tmpl | 17 | ||||
-rw-r--r-- | template/en/default/index.html.tmpl | 35 |
2 files changed, 50 insertions, 2 deletions
diff --git a/template/en/default/admin/params/core.html.tmpl b/template/en/default/admin/params/core.html.tmpl index bc2dca564..397d1c702 100644 --- a/template/en/default/admin/params/core.html.tmpl +++ b/template/en/default/admin/params/core.html.tmpl @@ -70,5 +70,20 @@ shutdownhtml => "If this field is non-empty, then $terms.Bugzilla will be completely " _ "disabled and this text will be displayed instead of all the " _ - "$terms.Bugzilla pages." } + "$terms.Bugzilla pages.", + + upgrade_notification => "<p>$terms.Bugzilla can inform you when a new release is available. " _ + "The notification will appear on the $terms.Bugzilla homepage, " _ + "for administrators only.</p>" _ + "<ul><li>'development_snapshot' notifies you about the latest " _ + "release on the trunk, i.e. development snapshots.</li>" _ + "<li>'latest_stable_release' notifies you about the most recent release " _ + "available on the most recent stable branch. This branch may be " _ + "different from the branch your installation is based on.</li>" _ + "<li>'stable_branch_release' notifies you only about new releases " _ + "corresponding to the branch your installation is based on. " _ + "If you are running a release candidate, you will get " _ + "a notification for newer release candidates too.</li>" _ + "<li>'disabled' will never notify you about new releases and no " _ + "connection will be established to a remote server.</li></ul>" } %] 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> |