Commit graph

343 commits

Author SHA1 Message Date
David Sn 90f324a5b7 Use preg_replace instead of str_replace for replacing extension
Bug: T166684
Change-Id: I233be410486276f30b08034180eb54cb08e04076
2017-12-07 16:05:48 +00:00
Translation updater bot e32d650042 Localisation updates from https://translatewiki.net.
Change-Id: Ifab041edabe85cb126ac63f9a8a12e402e30a829
2017-12-06 22:11:48 +01:00
Translation updater bot 63aeb4cfc5 Localisation updates from https://translatewiki.net.
Change-Id: Ibea20014746de0fcf8d3418047b9384506f7b1a9
2017-12-05 22:13:00 +01:00
David Sn 8a19c0cb33 Use png as fallback for svg on non-supported browsers
This will use the srcset attrribute which was introduced with HTML5,
in order to load the svg image on supported browsers.

Should fix the bug after merging change 394820.

Bug: T166684
Change-Id: I2337b750c80e79c816dc817dfe230e063eed0345
2017-12-04 22:13:23 +00:00
Translation updater bot e59d001536 Localisation updates from https://translatewiki.net.
Change-Id: Iac0222d65db818996112e572f1b53faaef5d3b5f
2017-12-04 22:39:59 +01:00
Translation updater bot 03ca369776 Localisation updates from https://translatewiki.net.
Change-Id: Idde0aee303bc1d03913e7d5fa530efb97d9484e5
2017-12-02 22:03:54 +01:00
Translation updater bot 52f5e81d07 Localisation updates from https://translatewiki.net.
Change-Id: Ide3af8903b2232db8aba273d414b19bb684ec01e
2017-11-30 22:46:26 +01:00
Volker E eaeea5dd5e Replace unique color with standard subtle print color
Replacing `#9aa0a7` with standard subtle `#999` print color.
Also clarfiying LESS variable naming and removing unused variable
`@printBorderColorLight`.

Change-Id: I2c1b36099935aa99d63a3316b3a107a23ffa0afd
2017-11-30 17:44:25 +00:00
jdlrobson eaa4dae5af Disable download button in all namespaces except main
The MinervaDownloadIcon config option is replaced with a
more specific wgMinervaDownloadNamespaces config option.
If the list is empty then the download button will not be
shown.

Since the download icon is enabled everywhere in production now
this is good as it means Minerva reflects the production value.

Bug: T181152
Change-Id: Id78c1de9e8e9013530106bc0d45d3cf0297897b5
2017-11-29 20:29:12 +00:00
jenkins-bot 9c987a7c72 Merge "Fix broken QUnit test" 2017-11-29 19:29:22 +00:00
Translation updater bot d450c2f341 Localisation updates from https://translatewiki.net.
Change-Id: Ic0a296b446eb906c0c9db8cae188cc670462e3bd
2017-11-28 22:01:09 +01:00
jdlrobson 89909ccf53 Fix broken QUnit test
Correct some options names and make minor adjustments to the
constructor function

Bug: T181348
Change-Id: Ia9fe9d2923b895d3dc530280e3987e27c88d3282
2017-11-28 11:46:55 -08:00
jenkins-bot 94fc4bbe13 Merge "Hygiene: Refactor Minerva history link generation" 2017-11-28 01:06:29 +00:00
jdlrobson ed5e9dd1d5 Hygiene: Refactor Minerva history link generation
* Create several sub functions to manage complexity of the history link
* Clean up MinervaTemplate to use data directly and remove isMainPage
template variable which is no longer being used.

Change-Id: I124aec9637f3635a335c58e559e578b2a56eb4c5
2017-11-27 14:27:11 -08:00
jenkins-bot f7578813e3 Merge "Clear spinner after window.print" 2017-11-27 21:18:37 +00:00
Translation updater bot fe8407b0a0 Localisation updates from https://translatewiki.net.
Change-Id: I4cb64ed57f4f1a0388cdeb88e24428fca654f0b8
2017-11-27 22:11:07 +01:00
jdlrobson 9826055afc Clear spinner after window.print
Looks like window.print may block so keep the spinner until
it's finished execution.

This may or may not fix the larger issue being discussed in the bug
but is harmless so why not.

Bug: T181261
Change-Id: I927d4bc8c96d74c14463f71b7ce6dec62618a485
2017-11-27 12:33:14 -08:00
Translation updater bot fd71cb1df0 Localisation updates from https://translatewiki.net.
Change-Id: I646f993e9a3e412d9c23597631382697c5ce3ca5
2017-11-26 22:01:47 +01:00
Translation updater bot 30a8996ca8 Localisation updates from https://translatewiki.net.
Change-Id: Ia2be97956509c96cf94dad0a44a0140931ac2a76
2017-11-25 22:07:44 +01:00
Translation updater bot 7667c5cb53 Localisation updates from https://translatewiki.net.
Change-Id: Iba9de31c82aeb33fab5d4e12eef6ad5d63402dff
2017-11-24 22:29:22 +01:00
Translation updater bot cdb1fce9c5 Localisation updates from https://translatewiki.net.
Change-Id: Ic3f585a3bb5113cc0587da7b56eec79ba9abfbb7
2017-11-23 22:35:27 +01:00
Translation updater bot 5d75af50c6 Localisation updates from https://translatewiki.net.
Change-Id: I58465933184ba09e4c24d7e0bfdba5629c029ea9
2017-11-22 21:59:23 +01:00
jenkins-bot 838cd377b9 Merge "Show last modified bar without relative time for old revisions" 2017-11-22 19:52:02 +00:00
jenkins-bot 110017125b Merge "Load all images during print action" 2017-11-22 19:40:25 +00:00
jdlrobson b72c10e06f Show last modified bar without relative time for old revisions
If FlaggedRevisions is being used then older revisions will be
shown as if they are the current revision of the page. This causes
problems as it makes it hard to give a true indication of when
something was last modified - do you show the last time someone
made an edit or the last time someone approved an edit?

The same issue applies on revisions and we attempted to fix this
earlier in T153125 but in doing so caused this problem.

Bug: T180116
Change-Id: I6d47adf272c99791d4af9f97afa02799d495887e
2017-11-22 10:29:51 -08:00
jdlrobson b05da8d49d Load all images during print action
When the print button is clicked, load all images from the page
before calling window.print

Add a timeout to make sure the user doesnt wait too long.

Change-Id: Ie922d239f9c5b5757237dc10b673fb500ff203ad
Depends-on: Id7f21606be3db22fe8dfde2db675f9905547cfea
Bug: T180058
2017-11-21 15:27:36 -08:00
Translation updater bot b40adadb78 Localisation updates from https://translatewiki.net.
Change-Id: I9faf576959d3619f5595e862c0cae6cf4828931f
2017-11-21 22:00:43 +01:00
Translation updater bot 1d7a497f23 Localisation updates from https://translatewiki.net.
Change-Id: I0a216aa7d31fc61bc7468145712c371d4eaf0a6d
2017-11-19 21:57:10 +01:00
Translation updater bot 5898680215 Localisation updates from https://translatewiki.net.
Change-Id: I1e48a89954dbcfa842292754aebe494769fbcf6b
2017-11-18 22:14:57 +01:00
jdlrobson 8eb65b264d If timestamp is null load revision time
Passing null to wfTimestamp will result in the current time.
Protect against that happening

Bug: T180103
Change-Id: I6ef9577bf52609bf387b0146f1d8a4a53be58cd7
2017-11-16 23:23:25 +00:00
Translation updater bot d0938de871 Localisation updates from https://translatewiki.net.
Change-Id: I61d95ac6035803fba52b62264c975f28f7c78b97
2017-11-16 22:36:34 +01:00
Translation updater bot fb7f27ac64 Localisation updates from https://translatewiki.net.
Change-Id: Ieba429759aab16206631a58d336f37939492cd7f
2017-11-15 21:56:39 +01:00
Volker E 8497d6d259 Unify SVG markup
Align SVG markup across Foundation products by:
- unifying XML declaration,
- adding `width` and `height` attributes where missing,
- removing all unnecessary `g` group elements where applicable,
- putting attributes in order,
- removing unnecessary ids and
- unifying whitespace.

Bug: T178867
Change-Id: I6860c9259553e0e41f7656f9e98534db8e02bbc2
2017-11-14 21:44:40 +00:00
Ed Sanders 8dd2544c0e Copy external link numbering from content.parsoid.less
Change-Id: I308d06ada35e63d81db8d034717f650d54aafc78
2017-11-13 19:20:29 +00:00
jenkins-bot 4d17797186 Merge "Do not center align h2s in footer" 2017-11-13 19:04:14 +00:00
jenkins-bot 5a4b645cd7 Merge "Restrict footer styles to skin footer" 2017-11-13 19:04:14 +00:00
jdlrobson 6df96ca768 Do not center align h2s in footer
In Id9b0e955d6e2a113f91484c7ee6bbc9275e3a2ec the css selector
was weakened and started impacting the footer as well.

This restores the old behaviour.

Bug: T180375
Change-Id: Ibfff6e249a3249ae2ee97d31fd50d2f5272a25ae
2017-11-13 10:49:21 -08:00
jdlrobson 14ddb0a742 Restrict footer styles to skin footer
The Popups extension uses a footer element so these rules clash with
that and probably other extensions.

To avoid this restrict the element to the skin.

Change-Id: Iac3aa8e600969a0feb0abeee745cd26592a594fd
2017-11-10 20:06:03 -08:00
jenkins-bot 854cd3e851 Merge "Do not try to add edit links to the HTML in contexts without a Title" 2017-11-10 02:15:45 +00:00
jdlrobson e422eb9a81 Do not try to add edit links to the HTML in contexts without a Title
Title may be null when accessed via this->getTitle()
If this is the case we should assume the skin is being used by someone
who is not a reader and in these circumstances, not try to render any
page actions.

Bug: T179833
Change-Id: Ia47fd9b059101bf22b5d31be7df3a332b35d6b24
2017-11-09 21:23:48 +00:00
jdlrobson 7697c262db Limit download button to Google Chrome
As discussed on ticket the download button only appears
to work on Google Chrome on mobile browsers.

Bug: T179529
Bug: T179914
Change-Id: I8bbda8d5a8aa42dd23773fea424c1a70e31d6f85
2017-11-09 21:11:02 +00:00
jenkins-bot 9fa40f81d8 Merge "Move class_alias out of skin initialization" 2017-11-08 06:46:20 +00:00
Kunal Mehta 74b3faf580 Move class_alias out of skin initialization
Use the standard way of doing it by adding an autoloader entry, and putting
the class_alias() call into the same file as the class.

Change-Id: I93e19ebcf3dd7d9815623de5e24861949fd0269a
2017-11-08 00:20:00 +00:00
jdlrobson 256606f672 Style kbd and samp elements as monospace
Bug: T175709
Change-Id: I0c11fbfe3fab0a0bc9fcea429970861b10643182
2017-11-07 22:59:09 +00:00
Translation updater bot 8a616daf3b Localisation updates from https://translatewiki.net.
Change-Id: I3e37dc60e58222c0655f4bc525494c852b20da9f
2017-11-07 22:05:36 +01:00
Volker E 29026b75bb Align icon variants with WikimediaUI color palette
Follow-up to I067973dca580eddc09b770362183d7a5b1634b7c

Bug: T146799
Change-Id: Idd02de3883c8c5a971dff657d002f4c9e09c88eb
2017-11-06 21:25:30 +00:00
Translation updater bot 2a0fcaec38 Localisation updates from https://translatewiki.net.
Change-Id: Idee87617465ebc01d62db34e7e1f790f741bdd81
2017-11-06 22:22:41 +01:00
Translation updater bot 25ed84a23a Localisation updates from https://translatewiki.net.
Change-Id: I3e517502d94533dcc07b820fb3a256eac4d9c7c3
2017-11-05 21:56:53 +01:00
Translation updater bot 63a9ec3564 Localisation updates from https://translatewiki.net.
Change-Id: Ic0de0ab78b243e15e45bc11723c71343d79000e6
2017-11-04 22:07:13 +01:00
Translation updater bot 35d5879ef3 Localisation updates from https://translatewiki.net.
Change-Id: Ib33054251fac22f2d74b26aaaf2872522a205172
2017-11-03 21:58:19 +01:00