show admin and moderator tags on members list

This commit is contained in:
Andre Staltz 2021-04-16 13:09:59 +03:00
parent 26ce19f1eb
commit f6a24921eb
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890

View File

@ -44,6 +44,11 @@
{{range $member.Aliases}}
<span class="mr-1 text-purple-800 bg-purple-100 rounded-lg px-2">{{.Name}}</span>
{{end}}
{{if eq .Role 2}}
<span class="text-green-800 bg-green-100 border-green-800 rounded-lg px-2">{{i18n "RoleModerator"}}</span>
{{else if eq .Role 3}}
<span class="text-yellow-800 bg-yellow-100 border-yellow-800 rounded-lg px-2">{{i18n "RoleAdmin"}}</span>
{{end}}
</div>
</div>