Localise "learn more" and warning icon to issues

This is currently showing up on sisterbox templates e.g.
the one on Category:Beekeeping

Bug: T197728
Change-Id: Idaf4aeb4a9efb668e5c06e19ce1eddace121e741
This commit is contained in:
jdlrobson 2018-06-19 15:52:28 -07:00
parent 041eaadcb5
commit f943abd854

View File

@ -90,18 +90,18 @@
glyphPrefix: 'minerva',
name: 'warning',
isSmall: true
} ).prependTo( '.mbox-text' );
} ).prependTo( $metadata.find( '.mbox-text' ) );
$learnMore = $( '<span>' )
.addClass( 'ambox-learn-more' )
.text( mw.msg( 'skin-minerva-issue-learn-more' ) );
if ( $( '.mw-collapsible-content' ).length ) {
// e.g. Template:Multiple issues
$learnMore.insertBefore( '.mw-collapsible-content' );
$learnMore.insertBefore( $metadata.find( '.mw-collapsible-content' ) );
} else {
// e.g. Template:merge from
$learnMore.appendTo( '.mbox-text-span' );
$learnMore.appendTo( $metadata.find( '.mbox-text-span' ) );
}
$( '.mbox-text' ).click( function () {
$metadata.find( '.mbox-text' ).click( function () {
overlayManager.router.navigate( '#/issues' );
} );
} else {