mediawiki-skins-MinervaNeue/includes
Nicholas Ray 071aa7a0c9 Enable Simplified Talk Page only on Pages With Expandable Sections
This patch should knock out two bugs we were seeing with the simplified
talk page:

1) Removes the "Add discussion" button and "There are no discussions"
message from appearing on Flow enabled talk pages.

2) Removes the "Read as wiki page" and "Active Discussions"/"There
are no discussions" message we were seeing on Minerva desktop talk
pages.

To address when the "There are no dicussions"/"Active Discussions"
message and "Read as wikipage" button are displayed, Minerva now listens
to MobileFrontend's `MobileFrontendBeforeDOM` hook and turns on the
simplified talk page (via a skin option) when this hook runs.

To address when the "Add discussion" button is added, a check was added
to SkinMinerva which only adds it to a talk page if the content model is
wikipage. Unfortunately, we can't just check the skin option because we
also want to display the button on desktop minerva.

Other changes:

* Moves around the logic in `getTalkPagePostHeadingHTML` for improved
readability

Bug: T237589
Bug: T237597
Change-Id: I83fd5cab174d90b24a5335f2b30c912c3b68040a
2019-11-20 21:41:43 +00:00
..
menu Hygiene: Drop optional parameters from SingleMenuEntry constructor 2019-11-07 19:04:21 +01:00
permissions [dev] [edit] rename EDIT permission to CONTENT_EDIT 2019-09-04 19:29:38 +02:00
skins Enable Simplified Talk Page only on Pages With Expandable Sections 2019-11-20 21:41:43 +00:00
LanguagesHelper.php Extract language/variants check to a service 2019-07-16 19:53:57 +00:00
MinervaHooks.php Enable Simplified Talk Page only on Pages With Expandable Sections 2019-11-20 21:41:43 +00:00
MinervaUI.php Add GPL file header to PHP classes 2018-04-15 16:23:10 -07:00
ResourceLoaderLessVarFileModule.php Add GPL file header to PHP classes 2018-04-15 16:23:10 -07:00
ServiceWiring.php [edit] [UI] hide edit section links for blocked users 2019-09-03 22:29:43 +02:00
SkinOptions.php Enable Simplified Talk Page only on Pages With Expandable Sections 2019-11-20 21:41:43 +00:00