Page MenuHomePhabricator

Add CSS classes for diff and hist links
Closed, DuplicatePublic

Description

Hi!

I think it would be very useful if the "diff" and "hist" links on Special:RecentChanges, Special:Contributions and Special:Watchlist had CSS classes on their a elements, like "mw-diff" and "mw-hist".

This would make it easy for users to – for instance – hide the hist links with CSS if they don't want to see them. It would also be nice for script writers who only want to target the diff links. Currently, this is unnecessarily difficult, because the first link in the li element is not necessarily a diff link (for log actions, for instance), and when a new page is created, "hist" becomes the first link in the li element, because the "diff" is not a link.

Event Timeline

Nirmos created this task.Jun 10 2015, 4:16 PM
Nirmos raised the priority of this task from to Needs Triage.
Nirmos updated the task description. (Show Details)
Nirmos added a subscriber: Nirmos.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 10 2015, 4:16 PM
Aklapper triaged this task as Lowest priority.Jun 10 2015, 5:11 PM
Aklapper set Security to None.

Well, i have understood what is needed here but the only thing i don't get clear is how do you want the "hist" links. Is it all the hist links at once or just one for a particular change.

This is a nice task i will like to work on. But i just need more clarifications so i can know what to do.

Scott renamed this task from Add HTML classes for diff and hist links to Add CSS classes for diff and hist links.Jan 7 2017, 1:57 AM
Scott updated the task description. (Show Details)
Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptJan 7 2017, 1:57 AM
EddieGP claimed this task.EditedFeb 17 2017, 12:11 PM
EddieGP added a subscriber: EddieGP.

For Special:Contributions this already exists: When inspecting code on any example contribution page it shows there is .mw-changeslist-diff for the link to the diff and .mw-changeslist-history for the link to the history. Indeed there are no classes on the Special:RecentChanges and Special:Watchlist pages.

Change 338350 had a related patch set uploaded (by EddieGP):
Adds css classes for user, diff and hist links on Specialpages

https://gerrit.wikimedia.org/r/338350

EddieGP raised the priority of this task from Lowest to Low.Mar 3 2017, 7:50 PM