Commit 05d2151a authored by karl%kornel.name's avatar karl%kornel.name

Bug 344074: Parameter to show announcements at the top of all pages

Patch by A. Karl Kornel <karl@kornel.name> r=myk a=myk
parent 7f9a841d
...@@ -106,6 +106,12 @@ sub get_param_list { ...@@ -106,6 +106,12 @@ sub get_param_list {
}, },
{ {
name => 'announcehtml',
type => 'l',
default => ''
},
{
name => 'upgrade_notification', name => 'upgrade_notification',
type => 's', type => 's',
choices => ['development_snapshot', 'latest_stable_release', choices => ['development_snapshot', 'latest_stable_release',
......
...@@ -72,6 +72,19 @@ ...@@ -72,6 +72,19 @@
"disabled and this text will be displayed instead of all the " _ "disabled and this text will be displayed instead of all the " _
"$terms.Bugzilla pages.", "$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. " _ upgrade_notification => "<p>$terms.Bugzilla can inform you when a new release is available. " _
"The notification will appear on the $terms.Bugzilla homepage, " _ "The notification will appear on the $terms.Bugzilla homepage, " _
"for administrators only.</p>" _ "for administrators only.</p>" _
......
...@@ -150,6 +150,10 @@ ...@@ -150,6 +150,10 @@
[% PROCESS "global/common-links.html.tmpl" %] [% PROCESS "global/common-links.html.tmpl" %]
[% IF Param('announcehtml') %]
[% Param('announcehtml') FILTER none %]
[% END %]
[% IF message %] [% IF message %]
<div id="message">[% message %]</div> <div id="message">[% message %]</div>
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment