Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
05d2151a
Commit
05d2151a
authored
Jul 14, 2006
by
karl%kornel.name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
Core.pm
Bugzilla/Config/Core.pm
+6
-0
core.html.tmpl
template/en/default/admin/params/core.html.tmpl
+13
-0
header.html.tmpl
template/en/default/global/header.html.tmpl
+4
-0
No files found.
Bugzilla/Config/Core.pm
View file @
05d2151a
...
@@ -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'
,
...
...
template/en/default/admin/params/core.html.tmpl
View file @
05d2151a
...
@@ -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><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. " _
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>" _
...
...
template/en/default/global/header.html.tmpl
View file @
05d2151a
...
@@ -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 %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment