Page MenuHomePhabricator

Add links to edit old versions to diff views
Closed, ResolvedPublic

Description

For convenience in reverting vandalism, diff pages should have direct links to
edit either of the displayed revisions. A JavaScript hack to accomplish this
has been proposed on the English Wikipedia
(http://en.wikipedia.org/wiki/MediaWiki_talk:Monobook.js#Request:_Edit_L.2FR_for_diffs),
but it would in my opinion be preferable to implement this directly in
DifferenceEngine.php.

See also http://bugzilla.wikimedia.org/show_bug.cgi?id=1783

A patch follows.


Version: 1.7.x
Severity: enhancement

Details

Reference
bz6125

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:17 PM
bzimport set Reference to bz6125.
bzimport added a subscriber: Unknown Object (MLST).

Patch to add edit links to diff header

The patch currently uses the "editsection" message for the text of the edit
link. A quick grep of the Messages*.php files suggests that this message is
appropriate in all languages, but it might nonetheless be preferable to
introduce a new message for this purpose.

Attached:

Alternative patch, using a new "editold" message instead of "editsection"

Attached:

jeluf wrote:

fixed in revision 14486.