Jdrewniak has uploaded a new change for review. ( 
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.

Change-Id: Ib3a8f9fe0fff5dd163e22e1e7e5feceff8b0d943
---
M resources/ext.cirrus.explore-similar.js
M resources/ext.cirrus.explore-similar.less
2 files changed, 10 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/09/376509/1

diff --git a/resources/ext.cirrus.explore-similar.js 
b/resources/ext.cirrus.explore-similar.js
index f10248a..4d28832 100644
--- a/resources/ext.cirrus.explore-similar.js
+++ b/resources/ext.cirrus.explore-similar.js
@@ -368,20 +368,10 @@
                         * This mapping used in openExploreSimilarItem().
                         */
                        var contentWidgets = {
-                                       related: new RelatedPagesWidget( 
resultTitle ),
-                                       categories: new 
RelatedCategoriesWidget( resultTitle ),
                                        languages: new LangLinksWidget( 
resultTitle )
                                },
                                $template = $(
                                        '<div class="' + cssClasses.buttons + 
'">' +
-                                               '<a class="' + 
cssClasses.button + '" data-es-content="related">' +
-                                                       l10n.relatedLink +
-                                                       '<span class="' + 
cssClasses.buttonIcon + '"></span>' +
-                                               '</a>' +
-                                               '<a class="' + 
cssClasses.button + '" data-es-content="categories">' +
-                                                       l10n.categoriesLink +
-                                                       '<span class="' + 
cssClasses.buttonIcon + '"></span>' +
-                                               '</a>' +
                                                '<a class="' + 
cssClasses.button + '" data-es-content="languages">' +
                                                        l10n.languagesLink +
                                                        '<span class="' + 
cssClasses.buttonIcon + '"></span>' +
diff --git a/resources/ext.cirrus.explore-similar.less 
b/resources/ext.cirrus.explore-similar.less
index 3ca379a..cda2c54 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;
        padding: 0;

-- 
To view, visit https://gerrit.wikimedia.org/r/376509
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib3a8f9fe0fff5dd163e22e1e7e5feceff8b0d943
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Jdrewniak <jdrewn...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to