Bmansurov has uploaded a new change for review.
https://gerrit.wikimedia.org/r/177089
Change subject: Hide some links from nonjs users
......................................................................
Hide some links from nonjs users
* Login and logout links on Special:MobileMenu
* Watchstar icon on pages
Change-Id: I43c6e849cadc9c0b43721e627a171c095fc64e69
---
M includes/skins/SkinMinerva.php
M less/mainmenu.less
M less/pageactions.less
3 files changed, 15 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/89/177089/1
diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php
index f7f2dc3..c2cbede 100644
--- a/includes/skins/SkinMinerva.php
+++ b/includes/skins/SkinMinerva.php
@@ -513,7 +513,8 @@
'text' => wfMessage(
'mobile-frontend-main-menu-logout' )->escaped(),
'href' => $url,
'class' => MobileUI::iconClass(
- 'secondary-logout',
'element', 'icon-24px icon-secondary truncated-text' ),
+ 'secondary-logout',
'element',
+ 'icon-24px
icon-secondary truncated-text jsonly' ),
),
),
);
@@ -530,7 +531,8 @@
array(
'text' => wfMessage(
'mobile-frontend-main-menu-login' )->escaped(),
'href' => $url,
- 'class' => MobileUI::iconClass(
'anonymous-white', 'before', 'icon-anon' ),
+ 'class' => MobileUI::iconClass(
'anonymous-white', 'before',
+ 'icon-anon jsonly' ),
),
),
);
diff --git a/less/mainmenu.less b/less/mainmenu.less
index a92cc94..f5994ad 100644
--- a/less/mainmenu.less
+++ b/less/mainmenu.less
@@ -334,3 +334,13 @@
}
}
}
+
+.client-nojs {
+ #mw-mf-page-left ul {
+ li {
+ a.jsonly {
+ display: none;
+ }
+ }
+ }
+}
diff --git a/less/pageactions.less b/less/pageactions.less
index 371aba8..c724550 100644
--- a/less/pageactions.less
+++ b/less/pageactions.less
@@ -4,7 +4,7 @@
@borderBottomColor: #CACACA;
// hide menu items when not possible to use
-.client-nojs #ca-watch.cta,
+.client-nojs #ca-watch,
.client-nojs #ca-edit,
.client-nojs #ca-upload,
#ca-talk.selected {
--
To view, visit https://gerrit.wikimedia.org/r/177089
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I43c6e849cadc9c0b43721e627a171c095fc64e69
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Bmansurov <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits