X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAutoblockList.php;h=bf138656bd2009694b812bfcdfbaf4c25648e773;hb=a70c4a4c466db5663b845889cacdef00d7200760;hp=dcb2444e18b8a9310b0d3ac0d523eddff50a4e42;hpb=eb72adcb4e28eedc1806d845355856bd6f97dadb;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