Page MenuHomePhabricator

wrap rights on GlobalGroupPermissions into a CSS class
Closed, ResolvedPublic

Description

Please wrap the right (for example '(edit)') into a class. Then
users can add own style. Thanks.

(see also bug 20014)


Version: unspecified
Severity: enhancement

Details

Reference
bz22770

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 21 2014, 11:02 PM
bzimport set Reference to bz22770.

Added class for SpecialGlobalGroupPermissions

What page are you talking about?
Special:GlobalGroupPermissions? The attached patch would add a new message parameter for that (note that $2 is used for links in the message and thus cannot get the class added to itself).

Attached:

Yes, it is [[Special:GlobalGroupPermissions]]. Thanks for the hint.

Shouldn't this be done with some clever $wgOut->wrapWikiMsg()?

Can you use wrapWikiMsg here?

Note that the <li> are being added by (and it does seem right to do so without adding the * to the message). How would you perform it with wrapWikiMsg?
Also note that wrapWikiMsg uses parse, not parseinline.

You don't need a class to style it.

.page-Special_GlobalGroupPermissions fieldset li {
color:red;
}

(In reply to comment #5)

You don't need a class to style it.
.page-Special_GlobalGroupPermissions fieldset li {
color:red;
}

That is wrong. I have to use the following and that per user right on [[Special:GlobalGroupPermissions]]

.page-Special_GlobalGroupPermissions_API_High_Limit_Requestor fieldset li label tt {
background-color:blue;
}

sumanah wrote:

Victor, could you take a look at this patch? Thanks.

sumanah wrote:

Platonides, can I ask you to submit this patch into Gerrit (with any updates as needed)? Thanks.

Turns out it has been commited since r66665 (May 2010)