Hide edit pencil for non-staff users

AI-generated summary

Hide edit pencil for non-staff users

The discussion is about hiding the edit pencil icon on posts from users who cannot see the edit history. Jonathan5 initially tried to use a CSS solution, but it hid the pencil for everyone, including staff. JammyDodger suggested adding another CSS rule to reset the display for staff members only, which worked as expected. The solution is:

.topic-body .post-info.edits {
    display: none;
}

.staff .topic-body .post-info.edits {
    display: initial;
}

Jonathan5 agrees with JammyDodger that knowing a post has been edited is useful, but is using this solution to declutter the forum.

Continuing the discussion from Hide edits icon for members?:

I’ve unset edit history visible to public but the orange pencil icon still appears on the post. I’d like to hide the pencil only for people who cannot see the edit history. In other words, I’d like the people who are allowed to see the edit history (but nobody else) to see the pencil.

This CSS solution hides the pencil for everybody but of course that means nobody can see the edit history…

If you add a second bit to reset it for staff it should do the trick:

.topic-body .post-info.edits {
    display: none;
}

.staff .topic-body .post-info.edits {
    display: initial;
}

Though (FWIW) I actually still find it useful to know a post has been edited even if I can’t see the history.

That works perfectly, thank you.

I agree with you, but I’m trying some things to declutter the forum.