XF 2.1 Change the font colours by user group on members online widget

I need to change the font colour of users of a specific user group to green. I already have users by gender as a blue font for the male and pink font for female.
Here is the code below I need to modify with users that are from a specific user group, the font colour will be green. The user group is users that have only posted 0-4 posts.

<xf:username user="$user" rich="true" class="{{ !$user.visible ? 'username--invisible' : '' }}{{ $user.Profile.custom_fields.gender == 'male' ? ' user--male' : '' }}{{ $user.Profile.custom_fields.gender == 'female' ? ' user--female' : '' }}" />
 
Back
Top Bottom