jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/334496 )
Change subject: demos: Add link to documentation ...................................................................... demos: Add link to documentation This hardcodes the URLS so that it works on doc.wikimedia.org. This is a bad idea. Bug: T127281 Change-Id: Ie7667f3128fcf4a8e3d07e861e6ccfbd66b5b8ce --- M demos/demo.js M demos/demos.php 2 files changed, 16 insertions(+), 1 deletion(-) Approvals: jenkins-bot: Verified Jforrester: Looks good to me, approved diff --git a/demos/demo.js b/demos/demo.js index 49620e2..47af285 100644 --- a/demos/demo.js +++ b/demos/demo.js @@ -53,6 +53,13 @@ new OO.ui.ButtonOptionWidget( { data: 'mobile', label: 'Mobile' } ) ] ); + this.documentationLink = new OO.ui.ButtonWidget( { + label: 'Docs', + icon: 'journal', + href: '../js/', + flags: [ 'progressive' ] + } ); + // Events this.pageMenu.on( 'choose', OO.ui.bind( this.onModeChange, this ) ); this.themeSelect.on( 'choose', OO.ui.bind( this.onModeChange, this ) ); @@ -71,7 +78,8 @@ this.themeSelect.$element, this.directionSelect.$element, this.jsPhpSelect.$element, - this.platformSelect.$element + this.platformSelect.$element, + this.documentationLink.$element ); this.$element .addClass( 'oo-ui-demo' ) diff --git a/demos/demos.php b/demos/demos.php index 489db07..c3022f3 100644 --- a/demos/demos.php +++ b/demos/demos.php @@ -87,6 +87,13 @@ ] ), ] ] ); + + echo new OOUI\ButtonWidget( [ + 'label' => 'Docs', + 'icon' => 'journal', + 'href' => '../php/', + 'flags' => [ 'progressive' ], + ] ); ?> </div> <?php -- To view, visit https://gerrit.wikimedia.org/r/334496 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ie7667f3128fcf4a8e3d07e861e6ccfbd66b5b8ce Gerrit-PatchSet: 1 Gerrit-Project: oojs/ui Gerrit-Branch: master Gerrit-Owner: Prtksxna <psax...@wikimedia.org> Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org> Gerrit-Reviewer: Legoktm <lego...@member.fsf.org> Gerrit-Reviewer: Prtksxna <psax...@wikimedia.org> Gerrit-Reviewer: VolkerE <volke...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits