Bsitu has uploaded a new change for review.
https://gerrit.wikimedia.org/r/73447
Change subject: (bug 51005) Add secondary link to the archive page
......................................................................
(bug 51005) Add secondary link to the archive page
Change-Id: I9b1e8fd76eacda3c4bcb5ffc1e3799204da52960
---
M formatters/BasicFormatter.php
1 file changed, 6 insertions(+), 12 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo
refs/changes/47/73447/1
diff --git a/formatters/BasicFormatter.php b/formatters/BasicFormatter.php
index 800d8c0..687b9a2 100644
--- a/formatters/BasicFormatter.php
+++ b/formatters/BasicFormatter.php
@@ -371,18 +371,12 @@
*/
protected function formatFooter( $event, $user ) {
global $wgLang;
- $timestamp = $this->formatTimestamp( $event->getTimestamp() );
- $notificationFooterContent = array();
- if ( $this->outputFormat === 'flyout' ) {
- $secondaryLink = $this->getLink( $event, $user,
'secondary' );
- if ( $secondaryLink ) {
- $notificationFooterContent[] = $timestamp;
- $notificationFooterContent[] = $secondaryLink;
- $footer = $wgLang->pipeList(
$notificationFooterContent );
- }
- }
- if ( !$notificationFooterContent ) {
- $footer = $timestamp;
+
+ // Default footer is timestamp
+ $footer = $this->formatTimestamp( $event->getTimestamp() );
+ $secondaryLink = $this->getLink( $event, $user, 'secondary' );
+ if ( $secondaryLink ) {
+ $footer = $wgLang->pipeList( array( $footer,
$secondaryLink ) );
}
return Xml::tags( 'div', array( 'class' =>
'mw-echo-notification-footer' ), $footer ) . "\n";
}
--
To view, visit https://gerrit.wikimedia.org/r/73447
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9b1e8fd76eacda3c4bcb5ffc1e3799204da52960
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits