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
5fa3cab7
Commit
5fa3cab7
authored
Sep 22, 2004
by
timeless%mozdev.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 259452 Add bonsai style &mark support to showbug for bug comments
r=kiko a=justdave
parent
d95f60f3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
global.css
css/global.css
+6
-0
show_bug.cgi
show_bug.cgi
+13
-0
global.css
skins/standard/global.css
+6
-0
comments.html.tmpl
template/en/default/bug/comments.html.tmpl
+2
-1
No files found.
css/global.css
View file @
5fa3cab7
...
@@ -171,5 +171,11 @@
...
@@ -171,5 +171,11 @@
.bz_disabled
{
color
:
#a0a0a0
;
}
.bz_disabled
{
color
:
#a0a0a0
;
}
.bz_comment
{
background-color
:
#e0e0e0
;
}
.bz_comment
{
background-color
:
#e0e0e0
;
}
.bz_comment_hilite
pre
{
background-color
:
lightgreen
;
margin
:
0
;
padding
:
1em
0
;
}
table
#flags
th
,
table
#flags
td
{
vertical-align
:
baseline
;
text-align
:
left
;
}
table
#flags
th
,
table
#flags
td
{
vertical-align
:
baseline
;
text-align
:
left
;
}
show_bug.cgi
View file @
5fa3cab7
...
@@ -59,6 +59,7 @@ my $format = GetFormat("bug/show", scalar $cgi->param('format'),
...
@@ -59,6 +59,7 @@ my $format = GetFormat("bug/show", scalar $cgi->param('format'),
GetVersionTable
();
GetVersionTable
();
my
@bugs
=
();
my
@bugs
=
();
my
%
marks
;
if
(
$single
)
{
if
(
$single
)
{
my
$id
=
$cgi
->
param
(
'id'
);
my
$id
=
$cgi
->
param
(
'id'
);
...
@@ -66,6 +67,17 @@ if ($single) {
...
@@ -66,6 +67,17 @@ if ($single) {
# probably move into Bug.pm at some point
# probably move into Bug.pm at some point
ValidateBugID
(
$id
);
ValidateBugID
(
$id
);
push
@bugs
,
new
Bugzilla::
Bug
(
$id
,
$userid
);
push
@bugs
,
new
Bugzilla::
Bug
(
$id
,
$userid
);
if
(
defined
$cgi
->
param
(
'mark'
))
{
foreach
my
$range
(
split
','
,
$cgi
->
param
(
'mark'
))
{
if
(
$range
=~
/^(\d+)-(\d+)$/
)
{
foreach
my
$i
(
$1
..
$2
)
{
$marks
{
$i
}
=
1
;
}
}
elsif
(
$range
=~
/^(\d+)$/
)
{
$marks
{
$1
}
=
1
;
}
}
}
}
else
{
}
else
{
foreach
my
$id
(
$cgi
->
param
(
'id'
))
{
foreach
my
$id
(
$cgi
->
param
(
'id'
))
{
my
$bug
=
new
Bugzilla::
Bug
(
$id
,
$userid
);
my
$bug
=
new
Bugzilla::
Bug
(
$id
,
$userid
);
...
@@ -80,6 +92,7 @@ eval {
...
@@ -80,6 +92,7 @@ eval {
};
};
$vars
->
{
'bugs'
}
=
\
@bugs
;
$vars
->
{
'bugs'
}
=
\
@bugs
;
$vars
->
{
'marks'
}
=
\%
marks
;
# Next bug in list (if there is one)
# Next bug in list (if there is one)
my
@bug_list
;
my
@bug_list
;
...
...
skins/standard/global.css
View file @
5fa3cab7
...
@@ -171,5 +171,11 @@
...
@@ -171,5 +171,11 @@
.bz_disabled
{
color
:
#a0a0a0
;
}
.bz_disabled
{
color
:
#a0a0a0
;
}
.bz_comment
{
background-color
:
#e0e0e0
;
}
.bz_comment
{
background-color
:
#e0e0e0
;
}
.bz_comment_hilite
pre
{
background-color
:
lightgreen
;
margin
:
0
;
padding
:
1em
0
;
}
table
#flags
th
,
table
#flags
td
{
vertical-align
:
baseline
;
text-align
:
left
;
}
table
#flags
th
,
table
#flags
td
{
vertical-align
:
baseline
;
text-align
:
left
;
}
template/en/default/bug/comments.html.tmpl
View file @
5fa3cab7
...
@@ -43,7 +43,8 @@
...
@@ -43,7 +43,8 @@
[% BLOCK a_comment %]
[% BLOCK a_comment %]
[% IF NOT comment.isprivate || isinsider %]
[% IF NOT comment.isprivate || isinsider %]
<div [% "class=\"bz_private\"" IF comment.isprivate %]>
<div [% "class=\"bz_private\" " IF comment.isprivate %]
[% "class=\"bz_comment_hilite\" " IF marks.$count %]>
[% IF count > 0 %]
[% IF count > 0 %]
<br>
<br>
<span class="bz_comment">
<span class="bz_comment">
...
...
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