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
aec17c9f
Commit
aec17c9f
authored
Aug 09, 2010
by
Christian Legnitto
Committed by
Max Kanat-Alexander
Aug 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 585490: Instead of hardcoding <i> for UNCONFIRMED bug links, use
a CSS class. r=mkanat, a=mkanat
parent
f88ae24f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
Template.pm
Bugzilla/Template.pm
+9
-6
global.css
skins/standard/global.css
+12
-0
No files found.
Bugzilla/Template.pm
View file @
aec17c9f
...
...
@@ -329,17 +329,16 @@ sub get_bug_link {
# Initialize these variables to be "" so that we don't get warnings
# if we don't change them below (which is highly likely).
my
(
$pre
,
$title
,
$post
)
=
(
""
,
""
,
""
);
my
@css_classes
=
(
"bz_bug_link"
);
$title
=
get_text
(
'get_status'
,
{
status
=>
$bug
->
bug_status
});
if
(
$bug
->
bug_status
eq
'UNCONFIRMED'
)
{
$pre
=
"<i>"
;
$post
=
"</i>"
;
}
push
@css_classes
,
"bz_status_"
.
css_class_quote
(
$bug
->
bug_status
);
if
(
$bug
->
resolution
)
{
$pre
.=
'<span class="bz_closed">'
;
push
@css_classes
,
"bz_closed"
;
$title
.=
' '
.
get_text
(
'get_resolution'
,
{
resolution
=>
$bug
->
resolution
});
$post
.=
'</span>'
;
}
if
(
Bugzilla
->
user
->
can_see_bug
(
$bug
))
{
$title
.=
" - "
.
$bug
->
short_desc
;
...
...
@@ -354,6 +353,10 @@ sub get_bug_link {
if
(
defined
$options
->
{
comment_num
})
{
$linkval
.=
"#c"
.
$options
->
{
comment_num
};
}
$pre
=
'<span class="'
.
join
(
" "
,
@css_classes
)
.
'">'
;
$post
=
'</span>'
;
return
qq{$pre<a href="$linkval" title="$title">$link_text</a>$post}
;
}
...
...
skins/standard/global.css
View file @
aec17c9f
...
...
@@ -251,6 +251,18 @@ div#docslinks {
margin
:
0
;
}
/**************************/
/* Bug links and statuses */
/**************************/
.bz_bug_link
{
/* Catch-all if you want common styles for all bug links */
}
.bz_bug_link
.bz_status_UNCONFIRMED
{
font-style
:
italic
;
}
.bz_obsolete
{
text-decoration
:
line-through
;
}
...
...
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