ChangesList separates content elements from presentation
Special:RecentChanges and Special:Watchlist benefit from this change Bug: T205581 Change-Id: If46d9ed904fdc6f01decbfde12ade0c47e282171
This commit is contained in:
parent
e81eed3675
commit
103581ec75
2 changed files with 9 additions and 9 deletions
|
|
@ -454,11 +454,9 @@ class ChangesList extends ContextSource {
|
|||
);
|
||||
}
|
||||
if ( $rc->mAttribs['rc_type'] == RC_CATEGORIZE ) {
|
||||
$diffhist = $diffLink . $this->message['pipe-separator'] . $this->message['hist'];
|
||||
$histLink = $this->message['hist'];
|
||||
} else {
|
||||
$diffhist = $diffLink . $this->message['pipe-separator'];
|
||||
# History link
|
||||
$diffhist .= $this->linkRenderer->makeKnownLink(
|
||||
$histLink = $this->linkRenderer->makeKnownLink(
|
||||
$rc->getTitle(),
|
||||
new HtmlArmor( $this->message['hist'] ),
|
||||
[ 'class' => 'mw-changeslist-history' ],
|
||||
|
|
@ -469,9 +467,11 @@ class ChangesList extends ContextSource {
|
|||
);
|
||||
}
|
||||
|
||||
// @todo FIXME: Hard coded ". .". Is there a message for this? Should there be?
|
||||
$s .= $this->msg( 'parentheses' )->rawParams( $diffhist )->escaped() .
|
||||
' <span class="mw-changeslist-separator">. .</span> ';
|
||||
$s .= Html::rawElement( 'div', [ 'class' => 'mw-changeslist-links' ],
|
||||
Html::rawElement( 'span', [], $diffLink ) .
|
||||
Html::rawElement( 'span', [], $histLink )
|
||||
) .
|
||||
' <span class="mw-changeslist-separator"></span> ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -535,7 +535,7 @@ class ChangesList extends ContextSource {
|
|||
htmlspecialchars( $this->getLanguage()->userTime(
|
||||
$rc->mAttribs['rc_timestamp'],
|
||||
$this->getUser()
|
||||
) ) . '</span> <span class="mw-changeslist-separator">. .</span> ';
|
||||
) ) . '</span> <span class="mw-changeslist-separator"></span> ';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ class OldChangesList extends ChangesList {
|
|||
if ( $this->getConfig()->get( 'RCShowChangedSize' ) ) {
|
||||
$cd = $this->formatCharacterDifference( $rc );
|
||||
if ( $cd !== '' ) {
|
||||
$html .= $cd . ' <span class="mw-changeslist-separator">. .</span> ';
|
||||
$html .= $cd . ' <span class="mw-changeslist-separator"></span> ';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue