Umherirrender has uploaded a new change for review. https://gerrit.wikimedia.org/r/89412
Change subject: Add column with link to UnreviewedPages on ValidationStatistics ...................................................................... Add column with link to UnreviewedPages on ValidationStatistics Special:ValidationStatistics on dewiki provides links to Special:UnreviewedPages above the table, having it direct in the table makes it easier when a new namespace is added and all information are together in one row and not splitted above the whole page. Change-Id: I63c2919587f858f91a2e9fe868b3cfb87b0650e0 --- M frontend/language/ValidationStatistics.i18n.php M frontend/specialpages/reports/ValidationStatistics_body.php 2 files changed, 16 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FlaggedRevs refs/changes/12/89412/1 diff --git a/frontend/language/ValidationStatistics.i18n.php b/frontend/language/ValidationStatistics.i18n.php index 57e1e90..4643d43 100644 --- a/frontend/language/ValidationStatistics.i18n.php +++ b/frontend/language/ValidationStatistics.i18n.php @@ -26,6 +26,7 @@ 'validationstatistics-latest' => 'Synced', 'validationstatistics-synced' => 'Synced/Reviewed', 'validationstatistics-old' => 'Outdated', + 'validationstatistics-unreviewed' => 'Unreviewed', 'validationstatistics-utable' => 'Below is a list of the {{PLURAL:$1|most active reviewer|$1 most active reviewers}} in the last {{PLURAL:$2|hour|$2 hours}}.', 'validationstatistics-user' => 'User', 'validationstatistics-reviews' => 'Reviews', @@ -85,6 +86,9 @@ Shown on the page [[Special:ValidationStatistics]]. Table header for pages that have pending changes (edits newer than the stable version). {{Identical|Outdated}}', + 'validationstatistics-unreviewed' => '{{Flagged Revs}} +Shown on the page [[Special:ValidationStatistics]]. +Table header for pages that have no stable version at all.', 'validationstatistics-utable' => '{{Flagged Revs}} Shown on the page [[Special:ValidationStatistics]]. Parameters: * $1 - number of users in the "top active reviewers" list diff --git a/frontend/specialpages/reports/ValidationStatistics_body.php b/frontend/specialpages/reports/ValidationStatistics_body.php index 8437839..6bd25ed 100644 --- a/frontend/specialpages/reports/ValidationStatistics_body.php +++ b/frontend/specialpages/reports/ValidationStatistics_body.php @@ -78,8 +78,9 @@ $out->addHTML( "<tr>\n" ); // Headings (for a positive grep result): // validationstatistics-ns, validationstatistics-total, validationstatistics-stable, - // validationstatistics-latest, validationstatistics-synced, validationstatistics-old - $msgs = array( 'ns', 'total', 'stable', 'latest', 'synced', 'old' ); // our headings + // validationstatistics-latest, validationstatistics-synced, validationstatistics-old, + // validationstatistics-unreviewed + $msgs = array( 'ns', 'total', 'stable', 'latest', 'synced', 'old', 'unreviewed' ); // our headings foreach ( $msgs as $msg ) { $out->addHTML( '<th>' . $this->msg( "validationstatistics-$msg" )->parse() . '</th>' ); @@ -120,6 +121,8 @@ ->escaped(); $outdated = intval( $reviewed ) - intval( $synced ); $outdated = $lang->formatnum( max( 0, $outdated ) ); // lag between queries + $unreviewed = intval( $total ) - intval( $reviewed ); + $unreviewed = $lang->formatnum( max( 0, $unreviewed ) ); // lag between queries $out->addHTML( "<tr align='center'> @@ -147,6 +150,13 @@ array( 'namespace' => $namespace ) ) . "</td> + <td>" . + Linker::linkKnown( SpecialPage::getTitleFor( 'UnreviewedPages' ), + htmlspecialchars( $unreviewed ), + array(), + array( 'namespace' => $namespace ) + ) . + "</td> </tr>" ); } -- To view, visit https://gerrit.wikimedia.org/r/89412 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I63c2919587f858f91a2e9fe868b3cfb87b0650e0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/FlaggedRevs Gerrit-Branch: master Gerrit-Owner: Umherirrender <umherirrender_de...@web.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits