protected function getLineData( array $block, RCCacheEntry $rcObj, array $queryParams = [] ) {
$RCShowChangedSize = $this->getConfig()->get( 'RCShowChangedSize' );
- # Classes to apply -- TODO implement
- $classes = [];
$type = $rcObj->mAttribs['rc_type'];
$data = [];
$lineParams = [];
+ $classes = [ 'mw-enhanced-rc' ];
if ( $rcObj->watched
&& $rcObj->mAttribs['rc_timestamp'] >= $rcObj->watched
) {
- $lineParams['classes'] = [ 'mw-enhanced-watched' ];
+ $classes[] = 'mw-enhanced-watched';
}
+ $classes = array_merge( $classes, $this->getHTMLClassesForFilters( $rcObj ) );
$separator = ' <span class="mw-changeslist-separator">. .</span> ';
unset( $data['timestampLink'] );
}
+ $lineParams['classes'] = array_values( $classes );
+
// everything else: makes it easier for extensions to add or remove data
$lineParams['data'] = array_values( $data );
$links['total-changes'] = $this->linkRenderer->makeKnownLink(
$block0->getTitle(),
new HtmlArmor( $nchanges[$n] ),
- [],
+ [ 'class' => 'mw-changeslist-groupdiff' ],
$queryParams + [
'diff' => $currentRevision,
'oldid' => $last->mAttribs['rc_last_oldid'],
$links['total-changes-since-last'] = $this->linkRenderer->makeKnownLink(
$block0->getTitle(),
new HtmlArmor( $sinceLastVisitMsg[$sinceLast] ),
- [],
+ [ 'class' => 'mw-changeslist-groupdiff' ],
$queryParams + [
'diff' => $currentRevision,
'oldid' => $unvisitedOldid,
$links['history'] = $this->linkRenderer->makeKnownLink(
$block0->getTitle(),
new HtmlArmor( $this->message['enhancedrc-history'] ),
- [],
+ [ 'class' => 'mw-changeslist-history' ],
$params
);
}
. $this->linkRenderer->makeKnownLink(
$pageTitle,
new HtmlArmor( $this->message['hist'] ),
- [],
+ [ 'class' => 'mw-changeslist-history' ],
$query
) )->escaped();
return $retVal;