X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAutoblockList.php;h=bf138656bd2009694b812bfcdfbaf4c25648e773;hb=077d8f78139037e6f724ab24df8bde10b8708ce0;hp=dcb2444e18b8a9310b0d3ac0d523eddff50a4e42;hpb=d42d6bd868fd5b579080639995e6a7e23851fcf3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAutoblockList.php b/includes/specials/SpecialAutoblockList.php index dcb2444e18..bf138656bd 100644 --- a/includes/specials/SpecialAutoblockList.php +++ b/includes/specials/SpecialAutoblockList.php @@ -78,6 +78,7 @@ class SpecialAutoblockList extends SpecialPage { ->prepareForm() ->displayForm( false ); + $this->showTotal( $pager ); $this->showList( $pager ); } @@ -97,6 +98,20 @@ class SpecialAutoblockList extends SpecialPage { return new BlockListPager( $this, $conds ); } + /** + * Show total number of autoblocks on top of the table + * + * @param BlockListPager $pager The BlockListPager instance for this page + */ + protected function showTotal( BlockListPager $pager ) { + $out = $this->getOutput(); + $out->addHTML( + Html::element( 'div', [ 'style' => 'font-weight: bold;' ], + $this->msg( 'autoblocklist-total-autoblocks', $pager->getTotalAutoblocks() )->parse() ) + . "\n" + ); + } + /** * Show the list of blocked accounts matching the actual filter. * @param BlockListPager $pager The BlockListPager instance for this page