GSoC/GCI Archive
Google Code-in 2014 Wikimedia Foundation

Change "View terms" to "Hide terms" in MediaViewer when terms are visible

completed by: m4tx

mentors: Gergő Tisza

MediaViewer displays images with associated metadata on top of wiki pages.

Some images (example) have a "View terms" bottom next to the license at the bottom of the screen, which reveals extra license information when clicked. Make the text change to "Hide terms" while the extra information is expanded (and make the button hide the extra information when clicked in that state). The relevant logic is in the mmv.ui.metadataPanel module.

This is T71233 in Wikimedia's issue tracker.

Students are required to read Wikimedia's general instructions first.