mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
daef425ba1
All hail Mustache! Change-Id: Iaf83dc27addd00ffd65d003bd5d84441965124e8 Depends-On: If00010e092e3766f9812f9a69ce0dfe22298689a Bug: T220620
27 lines
673 B
JavaScript
27 lines
673 B
JavaScript
( function ( M ) {
|
|
var
|
|
mobile = M.require( 'mobile.startup' ),
|
|
mfExtend = mobile.mfExtend,
|
|
View = mobile.View;
|
|
|
|
/**
|
|
* IssueNotice
|
|
* @class IssueNotice
|
|
* @extends View
|
|
*
|
|
* @param {IssueSummary} props
|
|
*/
|
|
function IssueNotice( props ) {
|
|
View.call( this, props );
|
|
}
|
|
mfExtend( IssueNotice, View, {
|
|
tagName: 'li',
|
|
template: mw.template.get( 'skins.minerva.scripts', 'IssueNotice.mustache' ),
|
|
postRender: function () {
|
|
View.prototype.postRender.apply( this, arguments );
|
|
this.$el.find( '.issue-notice' ).prepend( this.options.issue.icon.$el );
|
|
}
|
|
} );
|
|
M.define( 'skins.minerva.scripts/IssueNotice', IssueNotice );
|
|
}( mw.mobileFrontend ) );
|