7

Open up a privilege breakdown from the list of privileges on Meta.SE.

For this example, I'll use Vote Up.

The "Privilege Type:" text should be before its related symbol. Instead, it's after.

This appears to be cross-network, as it is also displayed this way on Stack Overflow's Vote Up page. (Dark mode appears to be irrelevant)

3
  • 2
    Similar Q&A on RSO's meta: ru.meta.stackoverflow.com/questions/10351/…
    – Rob
    Commented Apr 13, 2020 at 15:47
  • Freehand circles would actually be useful (they don't have to be ugly). It is not clear what symbol is referred to. Commented May 1, 2020 at 17:39
  • @P.Mort.-forgotClayShirky_q I'd edit some in, but the problem's already been fixed. The issue was that the symbol (the little up down arrows) should be after the "Privilege type:" text. Simply put, the order of the text was swapped. It should be "Privilege type: (symbol) Moderation privilege"
    – Spevacus Mod
    Commented May 1, 2020 at 20:14

1 Answer 1

6

This will be fixed in the next build. Thanks for the report!

Kind of a funny problem here. The icon and the type description used to be rendered via a helper function. There are no helpers in .NET Core, so it was replaced with a function that ended up writing markup out immediately when called when what we actually wanted was to use it as a parameter to our translation engine:

@functions {
    string PrivilegeIcon(Privilege privilege)
    {
        // var title = ...;
        <i title="@title"></i>@title
        return null;
    }
}

@_m("Privilege type: $icon$", new { icon = PrivilegeIcon(Model.SelectedPrivilege.Privilege) })
2
  • 1
    Interesting! Thanks for sharing the code as well.
    – Spevacus Mod
    Commented May 1, 2020 at 0:59
  • Prototypical side effects? Commented May 1, 2020 at 17:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .