.bz_disabled { color: #a0a0a0 ; }
.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; }
GetVersionTable();
my @bugs = ();
+my %marks;
if ($single) {
my $id = $cgi->param('id');
# probably move into Bug.pm at some point
ValidateBugID($id);
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 {
foreach my $id ($cgi->param('id')) {
my $bug = new Bugzilla::Bug($id, $userid);
};
$vars->{'bugs'} = \@bugs;
+$vars->{'marks'} = \%marks;
# Next bug in list (if there is one)
my @bug_list;
.bz_disabled { color: #a0a0a0 ; }
.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; }
[% BLOCK a_comment %]
[% 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 %]
<br>
<span class="bz_comment">