diff options
author | karl%kornel.name <> | 2006-07-14 15:04:21 +0200 |
---|---|---|
committer | karl%kornel.name <> | 2006-07-14 15:04:21 +0200 |
commit | 05d2151a4e0c6fb54925b5f4e786101aa22927e2 (patch) | |
tree | 7bc09cb53b7f95f7423a3a071bf6c3b9281b9f60 | |
parent | 7f9a841d4ceeb5b6bb1648c702c2c753b1d75a51 (diff) | |
download | bugzilla-05d2151a4e0c6fb54925b5f4e786101aa22927e2.tar.gz bugzilla-05d2151a4e0c6fb54925b5f4e786101aa22927e2.tar.xz |
Bug 344074: Parameter to show announcements at the top of all pages
Patch by A. Karl Kornel <karl@kornel.name> r=myk a=myk
-rw-r--r-- | Bugzilla/Config/Core.pm | 6 | ||||
-rw-r--r-- | template/en/default/admin/params/core.html.tmpl | 13 | ||||
-rw-r--r-- | template/en/default/global/header.html.tmpl | 4 |
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><div></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 %] |