jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/376509 )
Change subject: Explore Similar AB test 2
..
Explore Similar AB test 2
Testing Explore Similar feature with just language link + icon.
Removing related pages and categories sections.
Bug: T149809, T175647
Change-Id: Ib3a8f9fe0fff5dd163e22e1e7e5feceff8b0d943
---
M resources/ext.cirrus.explore-similar.js
M resources/ext.cirrus.explore-similar.less
2 files changed, 14 insertions(+), 11 deletions(-)
Approvals:
Tjones: Looks good to me, but someone else must approve
Cindy-the-browser-test-bot: Looks good to me, but someone else must approve
EBernhardson: Looks good to me, approved
jenkins-bot: Verified
DCausse: Looks good to me, but someone else must approve
diff --git a/resources/ext.cirrus.explore-similar.js
b/resources/ext.cirrus.explore-similar.js
index f10248a..0f9b1d3 100644
--- a/resources/ext.cirrus.explore-similar.js
+++ b/resources/ext.cirrus.explore-similar.js
@@ -154,6 +154,7 @@
*
* @return {Object} - extended DeferredContentWidget object.
*/
+ /*
function RelatedCategoriesWidget( articleTitle ) {
var config = {
apiConfig: {
@@ -208,6 +209,7 @@
};
return DeferredContentWidget.call( this, config );
}
+ */
/**
* Extends the DeferredContentWidget function with params
@@ -278,6 +280,7 @@
*
* @return {Object} - extended DeferredContentWidget object.
*/
+ /*
function RelatedPagesWidget( articleTitle ) {
var config = {
apiConfig: {
@@ -346,6 +349,7 @@
};
return DeferredContentWidget.call( this, config );
}
+ */
/**
* Global array for storing & deleting explore similar buttons
@@ -368,20 +372,10 @@
* This mapping used in openExploreSimilarItem().
*/
var contentWidgets = {
- related: new RelatedPagesWidget(
resultTitle ),
- categories: new
RelatedCategoriesWidget( resultTitle ),
languages: new LangLinksWidget(
resultTitle )
},
$template = $(
'' +
- '' +
- l10n.relatedLink +
- '' +
- '' +
- '' +
- l10n.categoriesLink +
- '' +
- '' +
'' +
l10n.languagesLink +
'' +
diff --git a/resources/ext.cirrus.explore-similar.less
b/resources/ext.cirrus.explore-similar.less
index 3ca379a..3ac4193 100644
--- a/resources/ext.cirrus.explore-similar.less
+++ b/resources/ext.cirrus.explore-similar.less
@@ -13,7 +13,7 @@
width: 100%;
}
-.mw-search-results > li:hover .@{prefix}__buttons {
+.mw-search-results > li .@{prefix}__buttons {
display: inline;
}
@@ -67,6 +67,15 @@
transform: rotate( 0 );
}
+.ext-cirrus__xplr__button[data-es-content='languages']:before {
+ content: '';
+ display: inline-block;
+ height: 15px;
+ width: 19px;
+ margin-right: 2px;
+ background-image: linear-gradient( transparent, transparent ), url(
data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M13%2019l.8-3h5.3l.9%203h2.2l-4.2-13h-3l-4.2%2013h2.2zm3.5-11l2%206h-4l2-6z%22%20fill%3D%22%23707070%22%2F%3E%3Cpath%20d%3D%22M5%204l.938%201.906h-4.938v2.094h1.594c.6%201.8%201.406%203.206%202.406%204.406-1.1.7-4.313%201.781-4.313%201.781l1.313%201.813s3.487-1.387%204.688-2.188c1%20.7%202.319%201.188%203.719%201.688l.594-2c-1-.3-1.988-.688-2.688-1.188%201.1-1.1%201.9-2.506%202.5-4.406h2.188l.5-2h-5.563l-.938-1.906h-2zm-.188%204h3.781c-.4%201.3-.906%202-1.906%203-1.1-1-1.475-1.7-1.875-3z%22%20fill%3D%22%23707070%22%2F%3E%3C%2Fsvg%3E%0A
);
+}
+
.@{prefix}__content {
margin: 0;