Merge "Clean up ProofreadPage page tabs a bit"

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

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

Loading…
Cancel
Save