Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support to Visually Identify Banned Users #2691

Closed
BrokenEagle opened this issue Sep 26, 2016 · 0 comments
Closed

Add Support to Visually Identify Banned Users #2691

BrokenEagle opened this issue Sep 26, 2016 · 0 comments

Comments

@BrokenEagle
Copy link
Collaborator

BrokenEagle commented Sep 26, 2016

@evazion brought up a nifty idea in his DanbooruEx forum topic, which allows for the easy visual identification of banned users, which is useful for distinguishing which new users have already been banned due to vandalism (or other reasons). With that, already banned users can be ignored on the Users Listing and focus can instead be brought upon other new users. However, Evazion's implementation is currently being done with Javascript.

It would be nice to have a CSS custom setting instead to visually identify these users. This could be done the same as how the other permissions are identified, i.e. through the link_to_user function in application_helper.rb with the following additional line:

user_class = user_class + " user-banned" if user.is_banned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant