]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 344074: Parameter to show announcements at the top of all pages
authorkarl%kornel.name <>
Fri, 14 Jul 2006 13:04:21 +0000 (13:04 +0000)
committerkarl%kornel.name <>
Fri, 14 Jul 2006 13:04:21 +0000 (13:04 +0000)
Patch by A. Karl Kornel <karl@kornel.name> r=myk a=myk

Bugzilla/Config/Core.pm
template/en/default/admin/params/core.html.tmpl
template/en/default/global/header.html.tmpl

index 3e1c666231bca6a53a334fee9c1220924b227987..d359d86aab31832e163868788d10d8ad7b7d08d2 100644 (file)
@@ -105,6 +105,12 @@ sub get_param_list {
    default => ''
   },
 
+  {
+   name => 'announcehtml',
+   type => 'l',
+   default => ''
+  },
+
   {
    name => 'upgrade_notification',
    type => 's',
index 397d1c70285b9298e426ad68df25ea57d59b7d5b..3e1010a7de82e8bba878cc5eb6c5553adc811dcb 100644 (file)
                   "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>" _
index 9edb5ec085ce1d6a32507619ae926a48d059e1d2..878f4db5f0b94852d877bdc2f48e91afac6e7a5a 100644 (file)
 
 [% PROCESS "global/common-links.html.tmpl" %]
 
+[% IF Param('announcehtml') %]
+[% Param('announcehtml') FILTER none %]
+[% END %]
+
 [% IF message %]
 <div id="message">[% message %]</div>
 [% END %]