From 05d2151a4e0c6fb54925b5f4e786101aa22927e2 Mon Sep 17 00:00:00 2001 From: "karl%kornel.name" <> Date: Fri, 14 Jul 2006 13:04:21 +0000 Subject: Bug 344074: Parameter to show announcements at the top of all pages Patch by A. Karl Kornel r=myk a=myk --- template/en/default/admin/params/core.html.tmpl | 13 +++++++++++++ template/en/default/global/header.html.tmpl | 4 ++++ 2 files changed, 17 insertions(+) (limited to 'template') 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 <div>. Give the div " _ + "id=message to get green text inside a " _ + "red box, or class=bz_private for dark " _ + "red on a red background. Anything defined in " _ + "skins/standard/global.css or " _ + "skins/custom/global.css will work. To get " _ + "centered text, use style=\"text-align: " _ + "center;\".", + upgrade_notification => "

$terms.Bugzilla can inform you when a new release is available. " _ "The notification will appear on the $terms.Bugzilla homepage, " _ "for administrators only.

" _ 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 %]
[% message %]
[% END %] -- cgit v1.2.3-24-g4f1b