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
8b725463
Commit
8b725463
authored
Feb 04, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an optional ability to stagger the headers in the bug list, which
is uglier, but often squeezes things better horizontally.
parent
f3e3cab0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
8 deletions
+50
-8
buglist.cgi
buglist.cgi
+34
-8
colchange.cgi
colchange.cgi
+16
-0
No files found.
buglist.cgi
View file @
8b725463
...
...
@@ -943,26 +943,52 @@ if ($dotweak) {
pnl
"<FORM NAME=changeform METHOD=POST ACTION=\"process_bug.cgi\">"
;
}
my
$tablestart
=
"<TABLE CELLSPACING=0 CELLPADDING=4 WIDTH=100%>
<TR ALIGN=LEFT><TH>
<A HREF=\"buglist.cgi?$fields&order=bugs.bug_id\">ID</A>"
;
my
@th
;
foreach
my
$c
(
@collist
)
{
if
(
exists
$::needquote
{
$c
})
{
my
$h
=
""
;
if
(
$::needquote
{
$c
})
{
$
tablestart
.=
"<TH WIDTH=100% valign=left
>"
;
$
h
.=
"<TH WIDTH=100%
>"
;
}
else
{
$
tablestart
.=
"<TH valign=left
>"
;
$
h
.=
"<TH
>"
;
}
if
(
defined
$::sortkey
{
$c
})
{
$
tablestart
.=
"<A HREF=\"buglist.cgi?$fields&order="
.
url_quote
(
$::sortkey
{
$c
})
.
"$oldorder\">$::title{$c}</A>"
;
$
h
.=
"<A HREF=\"buglist.cgi?$fields&order="
.
url_quote
(
$::sortkey
{
$c
})
.
"$oldorder\">$::title{$c}</A>"
;
}
else
{
$
tablestart
.=
$::title
{
$c
};
$
h
.=
$::title
{
$c
};
}
$h
.=
"</TH>"
;
push
(
@th
,
$h
);
}
}
my
$tablestart
=
"<TABLE CELLSPACING=0 CELLPADDING=4 WIDTH=100%>
<TR ALIGN=LEFT><TH>
<A HREF=\"buglist.cgi?$fields&order=bugs.bug_id\">ID</A>"
;
my
$splitheader
=
0
;
if
(
$::COOKIE
{
'SPLITHEADER'
})
{
$splitheader
=
1
;
}
if
(
$splitheader
)
{
$tablestart
=~
s/<TH/<TH COLSPAN="2"/
;
for
(
my
$pass
=
0
;
$pass
<
2
;
$pass
++
)
{
if
(
$pass
==
1
)
{
$tablestart
.=
"</TR>\n<TR><TD></TD>"
;
}
for
(
my
$i
=
1
-
$pass
;
$i
<
@th
;
$i
+=
2
)
{
my
$h
=
@th
[
$i
];
$h
=~
s/TH/TH COLSPAN="2" ALIGN="left"/
;
$tablestart
.=
$h
;
}
}
}
else
{
$tablestart
.=
join
(
""
,
@th
);
}
$tablestart
.=
"\n"
;
...
...
colchange.cgi
View file @
8b725463
...
...
@@ -56,6 +56,7 @@ push(@masterlist, ("summary", "summaryfull"));
my
@collist
;
if
(
defined
$::FORM
{
'rememberedquery'
})
{
my
$splitheader
=
0
;
if
(
defined
$::FORM
{
'resetit'
})
{
@collist
=
@::default_column_list
;
}
else
{
...
...
@@ -64,9 +65,13 @@ if (defined $::FORM{'rememberedquery'}) {
push
@collist
,
$i
;
}
}
if
(
exists
$::FORM
{
'splitheader'
})
{
$splitheader
=
$::FORM
{
'splitheader'
};
}
}
my
$list
=
join
(
" "
,
@collist
);
print
"Set-Cookie: COLUMNLIST=$list ; path=/ ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n"
;
print
"Set-Cookie: SPLITHEADER=$::FORM{'splitheader'} ; path=/ ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n"
;
print
"Refresh: 0; URL=buglist.cgi?$::FORM{'rememberedquery'}\n"
;
print
"\n"
;
print
"<TITLE>What a hack.</TITLE>\n"
;
...
...
@@ -81,6 +86,11 @@ if (defined $::COOKIE{'COLUMNLIST'}) {
@collist
=
@::default_column_list
;
}
my
$splitheader
=
0
;
if
(
$::COOKIE
{
'SPLITHEADER'
})
{
$splitheader
=
1
;
}
my
%
desc
;
foreach
my
$i
(
@masterlist
)
{
...
...
@@ -109,6 +119,12 @@ foreach my $i (@masterlist) {
print
"<INPUT TYPE=checkbox NAME=column_$i $c>$desc{$i}<br>\n"
;
}
print
"<P>\n"
;
print
BuildPulldown
(
"splitheader"
,
[[
"0"
,
"Normal headers (prettier)"
],
[
"1"
,
"Stagger headers (often makes list more compact)"
]],
$splitheader
);
print
"<P>\n"
;
print
"<INPUT TYPE=\"submit\" VALUE=\"Submit\">\n"
;
print
"</FORM>\n"
;
print
"<FORM ACTION=colchange.cgi>\n"
;
...
...
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