Merge "Clean up ProofreadPage page tabs a bit"

isekai
jenkins-bot 5 years ago committed by Gerrit Code Review
commit f9bbb4c0ee

@ -804,7 +804,6 @@ class TimelessTemplate extends BaseTemplate {
// Extra sorting for Extension:ProofreadPage namespace items
$tabs = [
'proofreadPagePrevLink',
// This is the order we want them in...
'proofreadPageScanLink',
'proofreadPageIndexLink',
@ -815,19 +814,8 @@ class TimelessTemplate extends BaseTemplate {
$toMove = $sortedPileOfTools['namespaces'][$tab];
unset( $sortedPileOfTools['namespaces'][$tab] );
// add a hover tooltip, mostly for the icons
$toMove['title'] = $toMove['text'];
if ( $tab === 'proofreadPagePrevLink' ) {
// prev at start
$sortedPileOfTools['namespaces'] = array_merge(
[ $tab => $toMove ],
$sortedPileOfTools['namespaces']
);
} else {
// move others to end
$sortedPileOfTools['namespaces'][$tab] = $toMove;
}
// move to end!
$sortedPileOfTools['namespaces'][$tab] = $toMove;
}
}

Loading…
Cancel
Save