Commit Graph

452 Commits

Author SHA1 Message Date
Antoine Musso a38b4f8038 Pass svg_checks.sh via ShellCheck
while read svgfile; do
    SC2162: read without -r will mangle backslashes.

if [ $(wc -c < "$svgfile") -gt $(wc -c < "$outfile") ];
    SC2046: quote to prevent word splitting

found increment was done in a subshell and hence would not be properly
incremented. Instead of:

  find | while

Switch to:

  while < <( find )

Based on https://github.com/koalaman/shellcheck/wiki/SC2031 , this way
$found is kept in the same context.

Change-Id: Id8eb1027eed373161c8e7932b7745d4f53f2fc6c
2017-12-11 16:48:49 +01:00
Antoine Musso 97552204f6 .gitignore /docs/ generated by JSDuck
Change-Id: I04889b8ee6f1bfb8eb524378219c2863953f2038
2017-12-11 16:42:39 +01:00
Translation updater bot d159a99be2 Localisation updates from https://translatewiki.net.
Change-Id: I53781515ca1b99291741230381d30564d1ecfc7c
2017-12-07 22:43:18 +01:00
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
Željko Filipin e7cad9e34c Update RuboCop Ruby gem
Bug: T180878
Change-Id: I904e947d7044b259f29f584b568ab2cb689bd5a4
2017-12-06 16:58:29 +01:00
jdlrobson 1146cef6b1 Optimise Special:MobileOptions for tablet display
Bug: T180095
Change-Id: I0ef0ce914a360848f8f66b39c40588f3fa04647c
2017-12-05 14:20:11 -08:00
Translation updater bot 63aeb4cfc5 Localisation updates from https://translatewiki.net.
Change-Id: Ibea20014746de0fcf8d3418047b9384506f7b1a9
2017-12-05 22:13:00 +01:00
jdlrobson c986db6c0e Always render taglines unconditionally and update styles
Adjust tagline margin per Nirzar:
https://phabricator.wikimedia.org/T180095#3801719

Note, this will  enable the tagline everywhere.

Change-Id: I3bce2a3472ab2e53261965c953572f35cc740eed
Bug: T180095
2017-12-05 00:27:11 +00: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
jenkins-bot 01d6c5ed21 Merge "Pages with only forms should take up entire page" into specialpages 2017-11-30 18:35:21 +00:00
jdlrobson 7c34b47993 Fix broken QUnit test
Correct some options names and make minor adjustments to the
constructor function

Bug: T181348
Change-Id: Ia9fe9d2923b895d3dc530280e3987e27c88d3282
(cherry picked from commit 89909ccf53)
2017-11-30 18:29:02 +00: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
jdlrobson b6e91de90e Pages with only forms should take up entire page
On Special:MobileOptions we want to make the form take up the full
width but pad the fields in the form
(per https://phabricator.wikimedia.org/T180095#3795514)

This change is harmless but is necessary as soon as we port
the page to OOjs UI (I70f68df9d2d305126444319b05675702af75de87)

Bug: T180095
Change-Id: I1dda3eb4d0e7ebbec544dc0f5763b079e38f5cc8
2017-11-29 19:58:09 +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