Jonas Kress (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/224037

Change subject: Make sitelink boxes collapsible
......................................................................

Make sitelink boxes collapsible

Added mw-collapsible class to widget skeleton and a span with
mw-collapsible-content around the actual site linklist view part.

Bug: T87024
Change-Id: I683358e69d6315a60d9c69b51259d7ba1b7aa5d1
---
M view/resources/templates.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/37/224037/1

diff --git a/view/resources/templates.php b/view/resources/templates.php
index efe31a9..1998842 100644
--- a/view/resources/templates.php
+++ b/view/resources/templates.php
@@ -224,14 +224,16 @@
 
        $templates['wikibase-sitelinkgroupview'] =
 <<<HTML
-<div class="wikibase-sitelinkgroupview" data-wb-sitelinks-group="$5">
+<div class="wikibase-sitelinkgroupview  mw-collapsible" 
data-wb-sitelinks-group="$5">
        <div class="wikibase-sitelinkgroupview-heading-section">
                <div class="wikibase-sitelinkgroupview-heading-container">
                        <h3 class="wb-sitelinks-heading" dir="auto" 
id="$1">$2<span class="wikibase-sitelinkgroupview-counter">$3</span></h3>
                        <!-- wikibase-toolbar -->$6
                </div>
        </div>
-       <!-- wikibase-sitelinklistview -->$4
+       <span class="mw-collapsible-content">
+               <!-- wikibase-sitelinklistview -->$4
+       </span>
 </div>
 HTML;
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I683358e69d6315a60d9c69b51259d7ba1b7aa5d1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jonas Kress (WMDE) <jonas.kr...@wikimedia.de>

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

Reply via email to