$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;
$curLink = $curMessage;
} else {
$curUrl = htmlspecialchars( $cacheEntry->getTitle()->getLinkURL( $queryParams ) );
- $curLink = "<a href=\"$curUrl\">$curMessage</a>";
+ $curLink = "<a class=\"mw-changeslist-diff-cur\" href=\"$curUrl\">$curMessage</a>";
}
return $curLink;
return $diffMessage;
}
$diffUrl = htmlspecialchars( $pageTitle->getLinkURL( $queryParams ) );
- $diffLink = "<a href=\"$diffUrl\">$diffMessage</a>";
+ $diffLink = "<a class=\"mw-changeslist-diff\" href=\"$diffUrl\">$diffMessage</a>";
} else {
$diffUrl = htmlspecialchars( $cacheEntry->getTitle()->getLinkURL( $queryParams ) );
- $diffLink = "<a href=\"$diffUrl\">$diffMessage</a>";
+ $diffLink = "<a class=\"mw-changeslist-diff\" href=\"$diffUrl\">$diffMessage</a>";
}
return $diffLink;
}
/**
+ * Builds the link to the previous version
+ *
* @param RecentChange $cacheEntry
* @param bool $showDiffLinks
*
$lastLink = $this->linkRenderer->makeKnownLink(
$cacheEntry->getTitle(),
new HtmlArmor( $lastMessage ),
- [],
+ [ 'class' => 'mw-changeslist-diff' ],
$this->buildDiffQueryParams( $cacheEntry )
);
}