Merge "Standardise preview warning box when using ?action=edit"
This commit is contained in:
commit
2aed14b686
3 changed files with 8 additions and 11 deletions
|
|
@ -4045,11 +4045,11 @@ ERROR;
|
|||
|
||||
if ( $this->isConflict ) {
|
||||
$conflict = Html::rawElement(
|
||||
'h2', [ 'id' => 'mw-previewconflict' ],
|
||||
'div', [ 'id' => 'mw-previewconflict', 'class' => 'warningbox' ],
|
||||
$this->context->msg( 'previewconflict' )->escaped()
|
||||
);
|
||||
} else {
|
||||
$conflict = '<hr />';
|
||||
$conflict = '';
|
||||
}
|
||||
|
||||
$previewhead = Html::rawElement(
|
||||
|
|
@ -4058,7 +4058,9 @@ ERROR;
|
|||
'h2', [ 'id' => 'mw-previewheader' ],
|
||||
$this->context->msg( 'preview' )->escaped()
|
||||
) .
|
||||
$out->parseAsInterface( $note ) . $conflict
|
||||
Html::rawElement( 'div', [ 'class' => 'warningbox' ],
|
||||
$out->parseAsInterface( $note )
|
||||
) . $conflict
|
||||
);
|
||||
|
||||
$pageViewLang = $this->mTitle->getPageViewLanguage();
|
||||
|
|
|
|||
|
|
@ -289,8 +289,9 @@ class McrUndoAction extends FormAction {
|
|||
'h2', [ 'id' => 'mw-previewheader' ],
|
||||
$this->context->msg( 'preview' )->text()
|
||||
) .
|
||||
$out->parseAsInterface( $note ) .
|
||||
"<hr />"
|
||||
Html::rawElement( 'div', [ 'class' => 'warningbox' ],
|
||||
$out->parseAsInterface( $note )
|
||||
)
|
||||
);
|
||||
|
||||
$pageViewLang = $this->getTitle()->getPageViewLanguage();
|
||||
|
|
|
|||
|
|
@ -436,15 +436,9 @@ a.new {
|
|||
|
||||
/* Note on preview page */
|
||||
.previewnote {
|
||||
color: #d33;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.previewnote p {
|
||||
text-indent: 3em;
|
||||
margin: 0.8em 0;
|
||||
}
|
||||
|
||||
.visualClear {
|
||||
clear: both;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue