From 728c3eb1a7757108003469563f623aa9d7078b0f Mon Sep 17 00:00:00 2001 From: Isarra Date: Thu, 29 Aug 2019 20:41:52 +0000 Subject: [PATCH] Clean up ProofreadPage page tabs a bit Basically, move a bunch of the logic to ProofreadPage itself, and only do some timeless-specific reordering/styling as due to its Special nature. Because timeless is Special. Bug: T231250 Depends-On: Ifd8be387cef671b2aaa2a482c145bccf2e6d1543 Change-Id: I6fd7b648e459fee60569a06ffa1f0a5eb179c9ba --- includes/TimelessTemplate.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index 6fde5c6..cb9da25 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -802,7 +802,6 @@ class TimelessTemplate extends BaseTemplate { // Extra sorting for Extension:ProofreadPage namespace items $tabs = [ - 'proofreadPagePrevLink', // This is the order we want them in... 'proofreadPageScanLink', 'proofreadPageIndexLink', @@ -813,19 +812,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; } }