jenkins-bot has submitted this change and it was merged. Change subject: Change the color of interlanguage entry points to grey ......................................................................
Change the color of interlanguage entry points to grey Also rename the module from ext.cx.redlink to ext.cx.interlanguagelink Campaign name also changed to interlanguagelink Bug: T96547 Change-Id: I00580f56c2ada58896658cde434188f6ca9bb2aa --- M ContentTranslation.hooks.php M Resources.php R modules/entrypoint/ext.cx.interlanguagelink.js R modules/entrypoint/styles/ext.cx.interlanguagelink.less 4 files changed, 10 insertions(+), 10 deletions(-) Approvals: Nikerabbit: Looks good to me, approved jenkins-bot: Verified diff --git a/ContentTranslation.hooks.php b/ContentTranslation.hooks.php index ab6237a..7b042c7 100644 --- a/ContentTranslation.hooks.php +++ b/ContentTranslation.hooks.php @@ -56,7 +56,7 @@ if ( $title->inNamespace( NS_MAIN ) && $title->exists() ) { - $out->addModules( 'ext.cx.redlink' ); + $out->addModules( 'ext.cx.interlanguagelink' ); } // Add a hover menu for the contributions link in personal toolbar diff --git a/Resources.php b/Resources.php index 906f6a7..b49f6dc 100644 --- a/Resources.php +++ b/Resources.php @@ -556,9 +556,9 @@ ), ) + $resourcePaths; -$wgResourceModules['ext.cx.redlink'] = array( - 'scripts' => 'entrypoint/ext.cx.redlink.js', - 'styles' => 'entrypoint/styles/ext.cx.redlink.less', +$wgResourceModules['ext.cx.interlanguagelink'] = array( + 'scripts' => 'entrypoint/ext.cx.interlanguagelink.js', + 'styles' => 'entrypoint/styles/ext.cx.interlanguagelink.less', 'messages' => array( 'cx-entrypoint-title', ), diff --git a/modules/entrypoint/ext.cx.redlink.js b/modules/entrypoint/ext.cx.interlanguagelink.js similarity index 94% rename from modules/entrypoint/ext.cx.redlink.js rename to modules/entrypoint/ext.cx.interlanguagelink.js index d2a652b..64a2a86 100644 --- a/modules/entrypoint/ext.cx.redlink.js +++ b/modules/entrypoint/ext.cx.interlanguagelink.js @@ -11,7 +11,7 @@ ( function ( $, mw ) { 'use strict'; - var campaign = 'redinterlanguagelink'; + var campaign = 'interlanguagelink'; /** * Get the list of target languages that should be suggested * to the current user: @@ -100,7 +100,7 @@ return $( 'li.interlanguage-link.interwiki-' + code ).length === 1; } - function createRedInterlanguageItem( code ) { + function createCXInterlanguageItem( code ) { var $link, $item, autonym; // Optimization: if it's just the user language, @@ -134,7 +134,7 @@ return $item; } - function prepareRedInterLanguageLinks( availableTargetLanguages ) { + function prepareCXInterLanguageLinks( availableTargetLanguages ) { var $newItem, $pLangList, dependencies, suggestedTargetLanguages; suggestedTargetLanguages = getSuggestedTargetLanguages( availableTargetLanguages ); @@ -160,7 +160,7 @@ $pLangList = $( '#p-lang ul' ); $.each( suggestedTargetLanguages, function ( i, code ) { if ( !pageInLanguageExists( code ) ) { - $newItem = createRedInterlanguageItem( code ); + $newItem = createCXInterlanguageItem( code ); $pLangList.prepend( $newItem ); $newItem.cxEntryPoint( { targetLanguage: code, @@ -174,7 +174,7 @@ $( function () { getAvailableTargetLanguages().then( function ( availableTargetLanguages ) { - prepareRedInterLanguageLinks( availableTargetLanguages ); + prepareCXInterLanguageLinks( availableTargetLanguages ); } ); } ); }( jQuery, mediaWiki ) ); diff --git a/modules/entrypoint/styles/ext.cx.redlink.less b/modules/entrypoint/styles/ext.cx.interlanguagelink.less similarity index 89% rename from modules/entrypoint/styles/ext.cx.redlink.less rename to modules/entrypoint/styles/ext.cx.interlanguagelink.less index 0d78924..593736d 100644 --- a/modules/entrypoint/styles/ext.cx.redlink.less +++ b/modules/entrypoint/styles/ext.cx.interlanguagelink.less @@ -1,4 +1,4 @@ /* Very specific selector to override core's nav bar link style */ div#mw-panel div.portal div.body ul li.cx-new-interlanguage-link a.new { - color: #BA0000; + color: #777; } -- To view, visit https://gerrit.wikimedia.org/r/207743 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I00580f56c2ada58896658cde434188f6ca9bb2aa Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Santhosh <santhosh.thottin...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits