X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialContributions.php;h=08a7fde92bea00fcbc5d8db877013d6c542cdbd9;hp=81e2f9e7376ec1c4b5e6e2dff81155878b094393;hb=c13fee87d42bdd6fdf6764edb6f6475c14c27749;hpb=befe7d531442335119552aaa56455651eccbc79f diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 81e2f9e737..08a7fde92b 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -45,6 +45,7 @@ class SpecialContributions extends IncludableSpecialPage { 'mediawiki.special', 'mediawiki.special.changeslist', ] ); + $out->addModules( 'mediawiki.special.recentchanges' ); $this->addHelpLink( 'Help:User contributions' ); $this->opts = []; @@ -243,9 +244,9 @@ class SpecialContributions extends IncludableSpecialPage { $output = $pager->getBody(); if ( !$this->including() ) { - $output = '

' . $pager->getNavigationBar() . '

' . + $output = $pager->getNavigationBar() . $output . - '

' . $pager->getNavigationBar() . '

'; + $pager->getNavigationBar(); } $out->addHTML( $output ); } @@ -266,14 +267,10 @@ class SpecialContributions extends IncludableSpecialPage { $message = 'sp-contributions-footer'; } - if ( $message ) { - if ( !$this->including() ) { - if ( !$this->msg( $message, $target )->isDisabled() ) { - $out->wrapWikiMsg( - "", - [ $message, $target ] ); - } - } + if ( $message && !$this->including() && !$this->msg( $message, $target )->isDisabled() ) { + $out->wrapWikiMsg( + "", + [ $message, $target ] ); } } } @@ -312,7 +309,11 @@ class SpecialContributions extends IncludableSpecialPage { $links = ''; if ( $talk ) { $tools = self::getUserLinks( $this, $userObj ); - $links = $this->getLanguage()->pipeList( $tools ); + $links = Html::openElement( 'span', [ 'class' => 'mw-changeslist-links' ] ); + foreach ( $tools as $tool ) { + $links .= Html::rawElement( 'span', [], $tool ) . ' '; + } + $links = trim( $links ) . Html::closeElement( 'span' ); // Show a note if the user is blocked and display the last block log entry. // Do not expose the autoblocks, since that may lead to a leak of accounts' IPs, @@ -352,7 +353,10 @@ class SpecialContributions extends IncludableSpecialPage { } } - return $this->msg( 'contribsub2' )->rawParams( $user, $links )->params( $userObj->getName() ); + return Html::rawElement( 'div', [ 'class' => 'mw-contributions-user-tools' ], + $this->msg( 'contributions-subtitle' )->rawParams( $user )->params( $userObj->getName() ) + . ' ' . $links + ); } /** @@ -607,6 +611,7 @@ class SpecialContributions extends IncludableSpecialPage { $labelNewbies . '
' . $labelUsername . ' ' . $input . ' ' ); + $hidden = $this->opts['namespace'] === '' ? ' mw-input-hidden' : ''; $namespaceSelection = Xml::tags( 'div', [], @@ -625,11 +630,11 @@ class SpecialContributions extends IncludableSpecialPage { ) . "\u{00A0}" . Html::rawElement( 'span', - [ 'class' => 'mw-input-with-label' ], + [ 'class' => 'mw-input-with-label' . $hidden ], Xml::checkLabel( $this->msg( 'invert' )->text(), 'nsInvert', - 'nsInvert', + 'nsinvert', $this->opts['nsInvert'], [ 'title' => $this->msg( 'tooltip-invert' )->text(), @@ -637,11 +642,11 @@ class SpecialContributions extends IncludableSpecialPage { ] ) . "\u{00A0}" ) . - Html::rawElement( 'span', [ 'class' => 'mw-input-with-label' ], + Html::rawElement( 'span', [ 'class' => 'mw-input-with-label' . $hidden ], Xml::checkLabel( $this->msg( 'namespace_association' )->text(), 'associated', - 'associated', + 'nsassociated', $this->opts['associated'], [ 'title' => $this->msg( 'tooltip-namespace_association' )->text(),