mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 14:23:53 +00:00
Merge "Fix: page issue icon type determination"
This commit is contained in:
commit
e0db127746
|
@ -119,13 +119,13 @@
|
||||||
// store it for late
|
// store it for late
|
||||||
allIssues[section] = issues;
|
allIssues[section] = issues;
|
||||||
|
|
||||||
if ( inline ) {
|
if ( $metadata.length && inline ) {
|
||||||
severity = pageIssueParser.maxSeverity(
|
severity = pageIssueParser.maxSeverity(
|
||||||
issues.map( function ( issue ) { return issue.pageIssue; } )
|
issues.map( function ( issue ) { return issue.pageIssue; } )
|
||||||
);
|
);
|
||||||
new Icon( {
|
new Icon( {
|
||||||
glyphPrefix: 'minerva',
|
glyphPrefix: 'minerva',
|
||||||
name: pageIssueParser.iconName( $metadata, severity )
|
name: pageIssueParser.iconName( $metadata.get( 0 ), severity )
|
||||||
} ).prependTo( $metadata.find( '.mbox-text' ) );
|
} ).prependTo( $metadata.find( '.mbox-text' ) );
|
||||||
$learnMore = $( '<span>' )
|
$learnMore = $( '<span>' )
|
||||||
.addClass( 'ambox-learn-more' )
|
.addClass( 'ambox-learn-more' )
|
||||||
|
|
Loading…
Reference in a new issue