Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/248985
Change subject: Remove view source link from beta
......................................................................
Remove view source link from beta
Note this doesn't address the issue with repeated messages.
Bug: T116654
Change-Id: Icb4a5a583b38f96e9d5dd246bb51802caa46924c
---
M i18n/en.json
M i18n/qqq.json
M includes/skins/SkinMinervaBeta.php
3 files changed, 0 insertions(+), 13 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/85/248985/1
diff --git a/i18n/en.json b/i18n/en.json
index 68a1e93..02e73c7 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -355,7 +355,6 @@
"mobile-frontend-view": "Mobile view",
"mobile-frontend-view-desktop": "Desktop",
"mobile-frontend-view-mobile": "Mobile",
- "mobile-frontend-view-source": "View source",
"mobile-frontend-watch-login": "Add $1 to your watchlist.",
"mobile-frontend-watchlist-a-z": "List",
"mobile-frontend-watchlist-a-z-empty-howto": "You are not currently
watching any pages. Your watchlist helps you keep track of the pages that you
are interested in. Watch pages by tapping the star icon.",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 4e710fc..92b7988 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -351,7 +351,6 @@
"mobile-frontend-view": "This is a link that appears at the bottom of a
desktop view wiki page near {{msg-mw|privacy}} and {{msg-mw|disclaimers}}.
Clicking it takes the user to a mobile view of the page.",
"mobile-frontend-view-desktop": "This is a link that appears at the
bottom of the mobile page. Clicking it takes the user to the desktop page. It
appears near the message {{msg-mw|Mobile-frontend-view-mobile}} and should be
worded similarly.\n{{Identical|Desktop}}",
"mobile-frontend-view-mobile": "This appears at the bottom of the
mobile page, meaning that the current view is mobile. It appears near the
message {{msg-mw|Mobile-frontend-view-desktop}} and should be worded
similarly.\n{{Identical|Mobile}}",
- "mobile-frontend-view-source": "Link displayed when viewing an old
revision.\n{{Identical|View source}}",
"mobile-frontend-watch-login": "Shows on [[Special:UserLogin]] when a
user tries to watch a page whilst anonymous.\n\nParameters:\n* $1 - the page
that will be watched upon logging in or signing
up\n{{Related|Mobile-frontend-login}}",
"mobile-frontend-watchlist-a-z": "Label for a button that takes you to
an A-Z list of all items in your watchlist.\n{{Identical|List}}",
"mobile-frontend-watchlist-a-z-empty-howto": "Message to accompany
image",
diff --git a/includes/skins/SkinMinervaBeta.php
b/includes/skins/SkinMinervaBeta.php
index cf1c05e..920da33 100644
--- a/includes/skins/SkinMinervaBeta.php
+++ b/includes/skins/SkinMinervaBeta.php
@@ -142,17 +142,6 @@
return $styles;
}
- /**
- * @return html for a message to display at top of old revisions
- */
- protected function getOldRevisionHtml() {
- $viewSourceLink = Html::openElement( 'p' ) .
- Html::element( 'a', array( 'href' =>
'#editor/0' ),
- $this->msg(
'mobile-frontend-view-source' )->text() ) .
- Html::closeElement( 'p' );
- return $viewSourceLink . parent::getOldRevisionHtml();
- }
-
/** @inheritdoc */
protected function preparePageContent( QuickTemplate $tpl ) {
parent::preparePageContent( $tpl );
--
To view, visit https://gerrit.wikimedia.org/r/248985
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb4a5a583b38f96e9d5dd246bb51802caa46924c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits