Commit graph

19 commits

Author SHA1 Message Date
alistair3149 cb6795de0a
refactor(core): clean up inconsistent use of partial variables 2022-05-22 15:06:49 -04:00
alistair3149 d4c7131c9f
fix(core): call to undefined method RequestContext::getAction()
Bug: #459
2022-05-18 19:15:51 -04:00
alistair3149 1df223abfa
feat(core): update menu to be more inlined with MW core
* Use label instead of h3 for menu headings
* Rename portals to portlets according to core
* Replace label-class with heading-class
* Use has-label to hide labels instead of adding screen reader class
2022-05-18 17:14:24 -04:00
github-actions 5411a9e81a ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-18 18:23:24 +00:00
alistair3149 bbf7fa8b34
fix(core): don't use getActionName < MW 1.38
getActionName does not exist before MW 1.38, use getAction instead

Bug: #459
2022-05-18 14:20:51 -04:00
alistair3149 4710d1e59a
refactor(core): remove MW version check for ULS
The selector is present in MLEB builds that supports 1.35. So we don't need
to exclude 1.35 anymore.
2022-05-17 09:54:31 -04:00
alistair3149 73c61e9b37
feat(core): use ULS for interwiki language menu if possible 2022-05-17 09:42:34 -04:00
github-actions 29cd22fd7c ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-16 23:32:53 +00:00
alistair3149 9926140281
feat(core): add language count badge
Now the language button will have a badge indicating avaliable languages for the page
2022-05-16 19:31:11 -04:00
github-actions b8976790e5 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-16 04:53:33 +00:00
alistair3149 442f241641
feat(core): add language menu to page tools
In other language menu and language variant menu are merged into a singular menu
with a toggle in page tools. This is the first step towards having better language
handling in the skin.
2022-05-16 00:50:00 -04:00
alistair3149 7756c3447f
refactor(core): clean up SkinMustache polyfill for 1.35 2022-05-15 21:37:39 -04:00
Lens0021 2787d49a96
fix: find toolbox explicitly (#448)
The last item in the sidebar is not always the toolbox in some wikis, as result, a wrong portlet is displayed.
2022-04-30 02:54:13 -04:00
alistair3149 f05295195a feat: move discussion to the top of the more menu
Also clean up some related-styles
2022-04-24 01:53:47 -04:00
Lens0021 449278f0be
feat: use template data for page tools if available (#440)
* Use template data for page tools if available

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

* emptyPortlet class is added by the core

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

* Update PageTools.php

* Set toolbox to always valid data

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2022-04-14 00:30:33 -04:00
alistair3149 41a0793ae1
refactor: use isRegistered instead of isLoggedIn
isLoggedIn is depreciated in 1.36
2021-03-25 15:06:54 -04:00
alistair3149 c795578dad
feat: merge namespace and variant links into more menu 2021-02-26 16:21:11 -05:00
Hannes 97850860b7
fix: Fatal error 2021-01-28 21:09:52 +01:00
Hannes cdb05ec7fd
refactor: Move footer and page links/tools 2021-01-28 20:35:31 +01:00