Add admin and moderator indicators to the user profile
Revives !250 (closed)
The complementary BE MR is merged now.
Updated video that shows how the settings change take place: https://cl.ly/483e72275867
Screenshots of how badges look in different themes:
(Updated styling with theming support as per @hj's feedback (I used .alert
with neutral gray that — the button background color that is optimized to be aligned with different themes):
BE provides two JSON fields: role
(which can be admin
, moderator
, or default member
) and show_role
. A few notes
-
If the user chooses not to display role, BE doesn't include
role
in the JSON response when giving this user's data to other users. -
show_role
is visible only to the current user and is used for toggling the parameter in the user settings UI
Merge request reports
Activity
mentioned in merge request pleroma!767 (merged)
added 1 commit
- af09b2b3 - Allow to configure visibility for admin and moderator badges
- Resolved by Eugenij
Names can be long enough to wrap, how does the label behave when there's no space?
- Resolved by Eugenij
- Resolved by HJ
- Resolved by Eugenij
- Resolved by Shpuld Shpludson
I don't think you need to show [Admin]/[Moderator] above post form, it's distracting and gives you info you don't really need. (unless you need a reminder that you're admin and you should behave accordingly)
added 1 commit
- f874df69 - Add theming support for admin/moderator badges