summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Config/Core.pm6
-rw-r--r--template/en/default/admin/params/core.html.tmpl13
-rw-r--r--template/en/default/global/header.html.tmpl4
3 files changed, 23 insertions, 0 deletions
diff --git a/Bugzilla/Config/Core.pm b/Bugzilla/Config/Core.pm
index 3e1c66623..d359d86aa 100644
--- a/Bugzilla/Config/Core.pm
+++ b/Bugzilla/Config/Core.pm
@@ -106,6 +106,12 @@ sub get_param_list {
},
{
+ name => 'announcehtml',
+ type => 'l',
+ default => ''
+ },
+
+ {
name => 'upgrade_notification',
type => 's',
choices => ['development_snapshot', 'latest_stable_release',
diff --git a/template/en/default/admin/params/core.html.tmpl b/template/en/default/admin/params/core.html.tmpl
index 397d1c702..3e1010a7d 100644
--- a/template/en/default/admin/params/core.html.tmpl
+++ b/template/en/default/admin/params/core.html.tmpl
@@ -72,6 +72,19 @@
"disabled and this text will be displayed instead of all the " _
"$terms.Bugzilla pages.",
+ announcehtml => "If this field is non-empty, then $terms.Bugzilla will " _
+ "display whatever is in this field at the top of every " _
+ "HTML page. The HTML you put in this field is not " _
+ "wrapped or enclosed in anything; you might want to " _
+ "wrap it inside a <tt>&lt;div&gt;</tt>. Give the div " _
+ "<em>id=message</em> to get green text inside a " _
+ "red box, or <em>class=bz_private</em> for dark " _
+ "red on a red background. Anything defined in " _
+ "<tt>skins/standard/global.css</tt> or " _
+ "<tt>skins/custom/global.css</tt> will work. To get " _
+ "centered text, use <em>style=\"text-align: " _
+ "center;\"</em>.",
+
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>" _
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 9edb5ec08..878f4db5f 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -150,6 +150,10 @@
[% PROCESS "global/common-links.html.tmpl" %]
+[% IF Param('announcehtml') %]
+[% Param('announcehtml') FILTER none %]
+[% END %]
+
[% IF message %]
<div id="message">[% message %]</div>
[% END %]