2023-11-07 16:29:17 +00:00
|
|
|
const
|
|
|
|
mobile = require( 'mobile.startup' ),
|
|
|
|
View = mobile.View;
|
2018-11-24 01:49:47 +00:00
|
|
|
|
2023-11-07 16:29:17 +00:00
|
|
|
/**
|
|
|
|
* IssueNotice
|
|
|
|
*
|
2024-06-26 13:23:40 +00:00
|
|
|
* @class
|
|
|
|
* @ignore
|
2023-11-07 16:29:17 +00:00
|
|
|
* @extends View
|
|
|
|
*
|
|
|
|
* @param {IssueSummary} props
|
|
|
|
*/
|
|
|
|
function IssueNotice( props ) {
|
|
|
|
View.call( this, props );
|
|
|
|
}
|
|
|
|
OO.inheritClass( IssueNotice, View );
|
|
|
|
IssueNotice.prototype.tagName = 'li';
|
|
|
|
IssueNotice.prototype.template = mw.template.get( 'skins.minerva.scripts', 'IssueNotice.mustache' );
|
|
|
|
IssueNotice.prototype.postRender = function () {
|
|
|
|
View.prototype.postRender.apply( this, arguments );
|
|
|
|
this.$el.find( '.issue-notice' ).prepend( this.options.issue.iconElement );
|
|
|
|
};
|
|
|
|
module.exports = IssueNotice;
|