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
dcba2bd7
Commit
dcba2bd7
authored
Apr 25, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 137183 - tab names should be in the template not in the .cgi. Patch by gerv; r=afranke, myk.
parent
f11fd90d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
19 deletions
+12
-19
prefs.html.tmpl
template/en/default/account/prefs/prefs.html.tmpl
+11
-1
userprefs.cgi
userprefs.cgi
+1
-18
No files found.
template/en/default/account/prefs/prefs.html.tmpl
View file @
dcba2bd7
...
...
@@ -49,13 +49,23 @@
}"
%]
[% tabs = [ { name => "account", description => "Account settings",
saveable => "1" },
{ name => "email", description => "Email settings",
saveable => "1" },
{ name => "footer", description => "Page footer",
saveable => "1" },
{ name => "permissions", description => "Permissions",
saveable => "0" } ] %]
<center>
<table cellspacing="0" cellpadding="10" border="0" width="100%">
<tr>
<td class="spacer"> </td>
[% FOREACH tab = tabs %]
[% IF tab.name == current_tab.name %]
[% IF tab.name == current_tab_name %]
[% current_tab = tab %]
<td align="center" bgcolor="lightblue" class="selected_tab">
[% tab.description %]
</td>
...
...
userprefs.cgi
View file @
dcba2bd7
...
...
@@ -365,24 +365,7 @@ $vars->{'changes_saved'} = $::FORM{'dosave'};
my
$current_tab_name
=
$::FORM
{
'tab'
}
||
"account"
;
my
@tabs
=
(
{
name
=>
"account"
,
description
=>
"Account settings"
,
saveable
=>
"1"
},
{
name
=>
"email"
,
description
=>
"Email settings"
,
saveable
=>
"1"
},
{
name
=>
"footer"
,
description
=>
"Page footer"
,
saveable
=>
"1"
},
{
name
=>
"permissions"
,
description
=>
"Permissions"
,
saveable
=>
"0"
}
);
# Work out the current tab
foreach
my
$tab
(
@tabs
)
{
if
(
$tab
->
{
'name'
}
eq
$current_tab_name
)
{
$vars
->
{
'current_tab'
}
=
$tab
;
last
;
}
}
$vars
->
{
'tabs'
}
=
\
@tabs
;
$vars
->
{
'current_tab_name'
}
=
$current_tab_name
;
# Do any saving, and then display the current tab.
SWITCH:
for
(
$current_tab_name
)
{
...
...
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