Commit graph

647 commits

Author SHA1 Message Date
Sam Smith 040314c504 Configure footer and sidebar placements
Changes:
* Rename $wgRelatedArticlesShowReadMore to $wgRelatedArticlesShowInFooter
* Add $wgRelatedArticlesShowInSidebar, which is truthy by default, and
  short circuit the SkinBuildSidebar and SkinTemplateToolboxEnd hook
  handlers if it is falsy

Bug: T119926
Change-Id: Idf04bf3221ba44d7b898160764fbd6ba83561abb
2015-12-02 11:17:54 +00:00
Sam Smith 9157e303d2 [Hygiene] Reorganise hooks to reflect placements
There are two positions where the list of related articles is rendered:
the sidebar, and the the footer. Move the hook handlers related to
rendering the former to RelatedArticles\SidebarHooks and those related
to rendering the latter to RelatedArticles\FooterHooks.

Change-Id: Idde57905d828e63309bfdc360a3a09e64e291304
2015-12-02 11:10:04 +00:00
jenkins-bot 9794dd499b Merge "Correctly show related articles on desktop" into dev 2015-12-02 02:08:08 +00:00
Baha 18990e6631 Correctly show related articles on desktop
When $wgRelatedArticlesShowReadMore was false, while deciding
whether to show related articles on the sidebar,
we used to incorrectly consider whether BetaFeatures was
enabled for the user. BetaFeatures should only be used
for enabling ReadMore and not for showing related articles
on the sidebar.

We also used to show the beta features option for ReadMore
even when the ReadMore feature was disabled. Now we only
show that option if ReadMore is enabled.

Also rename isAbleToShowRelatedPages to isInSidebar to make
the function less confusing.

Bug: T119926
Change-Id: Ia5e44d94bb20660af711772cab7e3a59f98c931f
2015-12-02 06:08:19 +05:00
Translation updater bot d8ccc34997 Merge "Localisation updates from https://translatewiki.net." into dev 2015-12-01 20:38:03 +00:00
Translation updater bot 0c476af23a Localisation updates from https://translatewiki.net.
Change-Id: Ic935d02165a01d2137492f93871946a5a86c209d
2015-12-01 21:35:55 +01:00
jenkins-bot 2cfe468387 Merge "Fix RelatedPagesGateway unit test failures" into dev 2015-12-01 18:43:31 +00:00
Translation updater bot c43bef2096 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-30 20:38:49 +00:00
Translation updater bot 26651286e4 Localisation updates from https://translatewiki.net.
Change-Id: Ib1a6952da8f1f9d64b5571743323f15d1fcde504
2015-11-30 21:36:10 +01:00
Translation updater bot 4094f0c364 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-28 20:51:33 +00:00
Translation updater bot 72516ec68b Localisation updates from https://translatewiki.net.
Change-Id: I06663f0696fc7db15cc04f0e1cf2783b9d20ff1b
2015-11-28 21:47:36 +01:00
Translation updater bot f8938ad89e Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-27 21:49:55 +00:00
Translation updater bot 14f2c69da2 Localisation updates from https://translatewiki.net.
Change-Id: I9bec6fb991688e42ea8f4bbebe740db4a2d697b2
2015-11-27 22:47:23 +01:00
Baha 3e943d79a1 Release version 1.2.0
Bug: T119749
Change-Id: I0038b4400ddc507639a22df7cb85e699cad4a877
2015-11-27 08:32:06 +05:00
Translation updater bot b0126156a5 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-26 21:07:45 +00:00
Translation updater bot fd3cfb10cf Localisation updates from https://translatewiki.net.
Change-Id: Id3a2a90e518661d113306869d597f82b4a6e3b21
2015-11-26 22:03:26 +01:00
jenkins-bot f61ee0ef6c Merge "Make RelatedArticles available as a beta feature" into dev 2015-11-25 20:14:12 +00:00
Baha 95ea0b0ef7 Make RelatedArticles available as a beta feature
Hide the related articles from the sidebar if ReadMore is enabled.
Otherwise leave as is because it's used in WikiVoyage.

Bug: T117444
Change-Id: I3879ae1e53de301b0d3f5f2c066f8e8de7c1c223
2015-11-25 20:43:51 +05:00
Sam Smith fbc696177a Fix RelatedPagesGateway unit test failures
I33936a3 didn't introduce a regression but highlighted an issue with the
fixture in the RelatedPagesGateway unit test: the fixture is in the
legacy JSON format despite the API request URL including
formatversion=2.

Change-Id: Id372d022625d88eea685267ea6b6484cf6b28cbc
2015-11-25 14:34:11 +00:00
Translation updater bot c327ff1859 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-24 22:13:52 +00:00
Translation updater bot e647e27dfe Localisation updates from https://translatewiki.net.
Change-Id: Ibb80cf3de5edee487fe2472fdb426096b796f014
2015-11-24 23:10:42 +01:00
Translation updater bot 14418d8fcb Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-23 21:37:45 +00:00
Translation updater bot 78f46741dc Localisation updates from https://translatewiki.net.
Change-Id: Ibcc3b0d7aa86cc59c28e3b9998cf5caf204db4cd
2015-11-23 22:34:46 +01:00
Baha 5522727f51 Add simple README
Bug: T118855
Change-Id: I0cf8bd2215996a514c14e32b6bb8797f898ff6e0
2015-11-23 23:10:02 +05:00
Translation updater bot a4516f2039 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-22 19:49:50 +00:00
Translation updater bot 942922b80b Localisation updates from https://translatewiki.net.
Change-Id: I2bbb8666d13e242041a4af0d2db288d925175d43
2015-11-22 20:46:05 +01:00
Translation updater bot ba69f625ab Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-20 22:01:30 +00:00
Translation updater bot 8ddf27486d Localisation updates from https://translatewiki.net.
Change-Id: I2a6253e0ff04d69b93516af2e3ba8f1cb1cf7de2
2015-11-20 22:57:35 +01:00
Translation updater bot 388f36aef3 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-19 20:43:11 +00:00
Translation updater bot 614c319b99 Localisation updates from https://translatewiki.net.
Change-Id: I47ff0a8aa50be16b0630e0289329d214ace40b7d
2015-11-19 21:39:50 +01:00
jenkins-bot fcdff4b4fe Merge "Make RelatedArticles soft-depend on Cards" into dev 2015-11-19 13:48:30 +00:00
Translation updater bot 3ac8ccaf97 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-18 21:02:18 +00:00
Translation updater bot 3b75c89652 Localisation updates from https://translatewiki.net.
Change-Id: Icf963340913d2e2bf1d60cba68b6fe30f52bf3b1
2015-11-18 21:59:37 +01:00
Baha 8cf9b60ab5 Make RelatedArticles soft-depend on Cards
RelatedArticles tries to load the 'ext.cards' module and if
it succeeds it continues with showing the related articles
on the page.

Dependency: I6661527175eb889cec4193b18fa18207f332b4fc
Bug: T117108
Change-Id: I33936a3e9cd5d1f0296e48fd1c2bba77fff4e466
2015-11-18 22:22:10 +05:00
Translation updater bot f24b8aa0d3 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-17 20:57:56 +00:00
Translation updater bot 6874a47b4d Localisation updates from https://translatewiki.net.
Change-Id: I4ddad00fc080bdb67e8f2a7fad461d51c3cce983
2015-11-17 21:53:42 +01:00
jenkins-bot 0f9193e8c2 Merge "[Hygiene] Rename internal uses of "article" to "page"" into dev 2015-11-17 11:37:58 +00:00
Translation updater bot ca973045f6 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-16 21:20:36 +00:00
Translation updater bot 7b6b4271c4 Localisation updates from https://translatewiki.net.
Change-Id: Ib90ecd4d7c12e2a7f58cc87540294224f5ed730a
2015-11-16 22:17:23 +01:00
Translation updater bot 09a3b720cb Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-15 21:24:38 +00:00
Translation updater bot 8fd7dd8c6c Localisation updates from https://translatewiki.net.
Change-Id: I567cccefb8a8e0a66b3d3f446d9fac94217102cf
2015-11-15 22:19:53 +01:00
Translation updater bot 7456dab2eb Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-14 21:21:25 +00:00
Translation updater bot 59f91b6f6c Localisation updates from https://translatewiki.net.
Change-Id: I372ef413e1b0a4638fd0a3b41f7b3a33d81d046a
2015-11-14 22:17:41 +01:00
jhobs d08962d12d [Hygiene] Rename internal uses of "article" to "page"
Leave all public-facing uses of "article" (including classes) because
the extension is remaining named RelatedArticles. Replace all other
instances with "page" for consistency with other extensions.

Bug: T117908
Change-Id: Ib0f258f26b0d11cfe8a598dbd90ff37afbbe36ac
2015-11-13 19:03:39 -05:00
Translation updater bot 7258716594 Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-13 20:36:36 +00:00
Translation updater bot ba224d1fd8 Localisation updates from https://translatewiki.net.
Change-Id: Ieebba2865d1299654c938e6a33aa7e6599a5f790
2015-11-13 21:34:35 +01:00
Sam Smith f87807e457 Limit the number of pages to 3
Bug: T116810
Change-Id: I175a1fd26d2041e3c652c80653a73b4211b992e6
2015-11-13 12:01:35 +00:00
Translation updater bot 0f554baa6e Merge "Localisation updates from https://translatewiki.net." into dev 2015-11-12 22:04:36 +00:00
Translation updater bot df530e471e Localisation updates from https://translatewiki.net.
Change-Id: Ie4dd3af0f529592595eadae54f0640fc4ef424f6
2015-11-12 23:00:40 +01:00
jenkins-bot b83e1bdc58 Merge "Optionally disable Read More using extension data" into dev 2015-11-12 15:55:01 +00:00