Commit graph

87 commits

Author SHA1 Message Date
Andrew H 1b2866df0d Shorten MediaViewer credit lines
Drop the title and site name. Use a shortened URL
created using the pageID for the curid query parameter.

Add pageID property to mmv.model.Image, using value already
fetched from an existing API request.

Bug: T119686
Depends-On: I0f00b986e6095bdb9b8d6af6fbc5b01995227e02
Change-Id: I9189f00bfbf7639974d66cf1921773855a77a865
2016-01-10 23:44:23 +00:00
Julius Alphonso a9758d21e0 Remove uploader's name from MediaViewer
Only last uploader's name is shows, this turns out to be
more confusing than useful.

Bug: T59308
Change-Id: I7d06b72c581fe8738bffc64b5e36be9983b01ccf
2015-12-29 10:56:08 +05:30
Translation updater bot f897f2b0a2 Localisation updates from https://translatewiki.net.
Change-Id: Ib7b44bdf17a74e20c2efba09e6f0eb6600f4d2f7
2015-12-20 22:34:33 +01:00
Translation updater bot 9c74a13c0e Localisation updates from https://translatewiki.net.
Change-Id: Ibda53ed00bc6d188a39677e0bbcc06541f06a2fb
2015-10-29 21:25:02 +01:00
Translation updater bot c1f69de77e Localisation updates from https://translatewiki.net.
Change-Id: I7dce64385e54d3c4725f2239510ede5bb78cda12
2015-10-28 21:54:54 +01:00
Gergő Tisza 77bfbf61aa Add some error details to bug report
Bug: T111112
Change-Id: I1c3a31ddaefdfec0d86b80891671316741e53b0c
2015-10-26 17:12:34 -07:00
Translation updater bot 0c4359ac3a Localisation updates from https://translatewiki.net.
Change-Id: I60de9867265fdfb3f8f7a3311e7a027bfb688461
2015-07-16 21:13:09 +02:00
Geoffrey Mon a7f11a7c45 Moar restriction icons!
Icons for all important non-copyright restriction types.
Also, some tweaks made in CSS e.g. add 1 px margin to top of mw-mmv-labels
Finally, new test to check if default restriction is placed last.

Example files:
copydesign: https://commons.wikimedia.org/wiki/File:Peugeot_404_dsc01875.jpg
trademark: https://commons.wikimedia.org/wiki/File:Logo_NIKE.svg
trademark+insignia: https://commons.wikimedia.org/wiki/File:Flag_of_UNESCO.svg
personality: https://commons.wikimedia.org/wiki/File:Vice_President_Megawati_Sukarnoputri_-_Indonesia.jpg
communist+insignia: https://commons.wikimedia.org/wiki/File:Flag_of_Georgian_SSR.svg
nazi: https://commons.wikimedia.org/wiki/File:PropagandaNaziJapaneseMonster.gif
costume: https://commons.wikimedia.org/wiki/File:Shrek_%26_Fiona.jpg
fan-art: https://commons.wikimedia.org/wiki/File:Magic_wand.gif
(I think that's enough)

Bug: T102693
Change-Id: I907396c59752511448145a4ac5d29096166f841f
2015-07-16 01:06:39 +00:00
Translation updater bot 320bca39ee Localisation updates from https://translatewiki.net.
Change-Id: Ib3c57368d17ce0b6876bc2929d88fc104d946fcb
2015-01-15 22:49:11 +01:00
gladoscc 84a8df8808 Show (tm) symbol if applicable
ImageData will now parse for restrictions (this part has not been
implemented in CommonsMetadata yet), and an orange trademark label
will be displayed next to the license label if there is a 'trademarked'
restriction.

Bug: T77717
Change-Id: Ib03f9708d1e4ff0b5befddc2688b274e2c7ce1f7
2015-01-15 18:21:30 +11:00
Translation updater bot 598b902222 Localisation updates from https://translatewiki.net.
Change-Id: I25460b9e9711f646d88ff93fc64ab41833285d15
2015-01-14 22:41:11 +01:00
m4tx 9a6039b580 Improve error messages UI for Media Viewer
Bug: T77272
Change-Id: I97ffa70903da32c66697c52969cfec2df03c1d57
2015-01-14 08:24:27 +01:00
m4tx dac77cafc4 Change "view terms" to "hide terms" once clicked
metadataPanel overrides the grow() and shrink() methods in Permission
class instance, so the text is changed also when user clicks the
"view more" link inside the box.

Bug: T71233
Change-Id: I66fe57980c6f469d86e3d52b67d01e06a3a14270
2014-12-29 23:23:07 +01:00
Namit 50391b6a01 Permission title changed to "Permission details"
It is not about the license but the permission why Commons may keep this file.
Other permission messages also changed accordingly.

Bug: T66804
Change-Id: Ic3f1f1f8280022f4c0d1b48502cac1709b5c14a1
2014-12-19 12:49:52 -06:00
jenkins-bot ba5acde550 Merge "Make "and X more" message more flexible for translators" 2014-12-18 09:00:14 +00:00
Translation updater bot 401fe0854d Localisation updates from https://translatewiki.net.
Change-Id: I662ee0df12442c7f90926fe4280aae30f5273776
2014-12-07 21:54:50 +01:00
Gergő Tisza b5d3f9ef6c Make "and X more" message more flexible for translators
Also make sure part of it is not a link to avoid two links
ending up next to each other + fix a small documentation bug.

Bug: T76465
Change-Id: I128ec7034b0bb9784fb78d1a5ce90d195555848e
2014-12-02 22:49:29 +00:00
jenkins-bot f2e1423a1e Merge "Show "and X more authors" when a file has multiple info templates" 2014-12-01 16:05:34 +00:00
Translation updater bot 76736b6e4f Localisation updates from https://translatewiki.net.
Change-Id: I256bc577edcea4c13f54226bc73541b22f22b802
2014-11-29 12:55:26 +01:00
Gergő Tisza 485944ba9d Show "and X more authors" when a file has multiple info templates
Bug: T74082
Change-Id: If53e3e364d07ef35a93b3b24430441d390aaf66e
2014-11-27 07:24:26 +00:00
Gergő Tisza 05d803e17a Text changes for better handling of PD and nonfree licenses
Bug: T70687
Change-Id: I84e0094559e5b438fcb33b8511dc0184435c1a37
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/1004
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/631
2014-11-26 02:21:50 +00:00
Translation updater bot 18cfe53c2b Localisation updates from https://translatewiki.net.
Change-Id: I9b4abdd42390389621d862f8524b445c1ff3e3a8
2014-11-12 21:52:57 +01:00
Translation updater bot affe308104 Localisation updates from https://translatewiki.net.
Change-Id: I12c1250e56fa0ef13ee18fcf91d303eab7a87486
2014-11-11 22:13:29 +01:00
Gergő Tisza af508f066a Make the ellipsis of truncated texts more prominent
Also fixes popup texts which should have been updated in the parent commit
and the panel opening mechanism which did not work when the below-the-fold
description box was display:none-d.

Change-Id: I5fc37429a7dc7a8f1517fa42375cd140d7d11674
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/589
2014-11-11 15:37:14 +00:00
jenkins-bot 6e79ad51f1 Merge "Display a placeholder text when author and source are missing" 2014-10-31 09:41:30 +00:00
Translation updater bot 646d8eb39f Localisation updates from https://translatewiki.net.
Change-Id: I0845e99fc931f13126da44e970e2844509414b10
2014-10-29 22:06:35 +01:00
Gergő Tisza b0bac10627 Display a placeholder text when author and source are missing
Change-Id: I38478956c5a0b5f204e5caa43e54db651f297887
2014-10-29 15:38:56 +00:00
Translation updater bot 8d1648f203 Localisation updates from https://translatewiki.net.
Change-Id: I25daeb459c7b40941974b9557c5b7df74f4bcf9f
2014-10-22 22:03:23 +02:00
Translation updater bot 83018b9e4f Localisation updates from https://translatewiki.net.
Change-Id: I5f928dde88132eb30e7482d49d22f8d20ddc84ea
2014-10-21 23:01:44 +02:00
Gergő Tisza 2c578e6dc3 Show popup when the user visits a file page the first time after disabling MMV
Change-Id: Id2b121c930115373a8a81dc1091c4124807db053
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/719
2014-10-21 14:28:20 +00:00
Gilles Dubuc 90042a5a02 Cog icon & mw.ui styling for expand button
Includes some small refactoring of the bootstrap code to open
MediaViewer so it can be used in a more controller-like fashion, and
removing the .mw-mmv-filepage-menu class which was added in the parent
commit but had no effect since the module was not loaded by default.

Change-Id: I2e7405e694af96e8eca4fcc839b60306232ead01
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/719
2014-10-21 15:16:33 +02:00
Mark Holmquist 1853540cd3 Add viewing options panel
Enable, disable, and get confirmations.

Lots of UI work on this one.

Change-Id: I1f731992bd240e7ea403592872f7c7e270158753
2014-10-19 00:27:15 +02:00
Translation updater bot 5acb0fd0a4 Localisation updates from https://translatewiki.net.
Change-Id: I07c0f9b2cf0e53dca330df80857c9f853f2970ce
2014-09-29 23:31:56 +02:00
Mark Holmquist 0d4863dd91 Make the download pane into its own dialog
Change-Id: Ia92545ed1ef7f2e4ba7934c682eef684a22ca17f
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/841
2014-09-24 17:05:50 +02:00
Translation updater bot 717011766e Localisation updates from https://translatewiki.net.
Change-Id: Ib51bd36e63aca7ef51813f337d539ecf59e4e339
2014-09-11 23:58:32 +02:00
Translation updater bot b5a71b8800 Localisation updates from https://translatewiki.net.
Change-Id: I0e3e41e73a518f1c34947ee7f0efbbf08f1083cf
2014-09-10 23:41:15 +02:00
Gilles Dubuc caa624d711 Remove file usage
Change-Id: I538f7734e1c06a179ee98a5cd843ccee4d91349f
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/835
2014-09-05 08:14:52 +02:00
Translation updater bot 91b7bd265a Localisation updates from https://translatewiki.net.
Change-Id: I01be2ef68350ceb17a9dac715b34e5475f774320
2014-09-04 22:08:22 +02:00
Translation updater bot ebf2836401 Localisation updates from https://translatewiki.net.
Change-Id: Ice4bf7f0fc08abcb9f23456f08c0d1460b85b44b
2014-09-02 22:15:38 +02:00
Translation updater bot a0a7c2f995 Localisation updates from https://translatewiki.net.
Change-Id: I4581042e647458d52f1815fa8fe02aad2edfd6f9
2014-08-27 21:25:50 +02:00
Translation updater bot f5ccd12ee5 Localisation updates from https://translatewiki.net.
Change-Id: I13a001de02b30fd785ce6587a10f36a33287e28b
2014-07-17 22:59:03 +02:00
Gergő Tisza f14d08fd75 Reveal full text when user clicks on title or credit
Reveal the full title + author + source when the user clicks one
of these, and make some related changes:
* expand the above-the-fold part of the metadata panel so they fit
* make the stripe buttons smaller and hide their text
* scroll the panel up if necessary
* modify tooltip texts when there is more text to show

Change-Id: I304297bc5e7be7b16e2fc4bde66ac19641b00029
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/396
2014-07-17 09:42:12 -04:00
Gilles Dubuc b0d885e4dc Remove all survey-related code
Change-Id: I67285260c13a1e8d3c37365bb80a7156c0fecd4e
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/794
2014-07-16 21:27:53 +00:00
Gergő Tisza a57a606ee5 Transclude expand button text in help message instead of copying it
Per translatewiki.net request at
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Multimediaviewer-optout-help/ar

Change-Id: I2bff044ad6d5b2fb3f72cba2cb1f6add181da5f1
2014-07-15 22:12:47 +00:00
jenkins-bot 116d29a651 Merge "Remove trainling dot from download attibution text to not break URLs" 2014-07-07 16:30:56 +00:00
jenkins-bot 06b772d92f Merge "Make description page link and reuse widget more prominent" 2014-07-04 06:45:34 +00:00
Gergő Tisza 4a05b97dc9 Remove trainling dot from download attibution text to not break URLs
When formatting the attribution as plain text, make sure that the
source parameter (which typically ends with an URL) is not followed
by a '.', which could break autolinking when e.g. the text is
copied into a mail.

Change-Id: I5406fe3a55bc4ef6802b32d5a3d533ce9f49b361
2014-07-02 01:11:02 +00:00
Translation updater bot 435161cba9 Localisation updates from https://translatewiki.net.
Change-Id: I8dd28256caaba1026091134e609dfd8acff022fb
2014-06-30 20:38:12 +00:00
jenkins-bot 02216b5ed3 Merge "Add section for attribution of downloads" 2014-06-30 18:36:07 +00:00
Mark Holmquist 532819b5a0 Remove next/prev tooltips
Change-Id: I978914bd57d7fdc260dbc0422915e6b766c35a66
2014-06-30 14:20:41 -04:00