[frontend/components] Add admin and moderator badges to profile info
This commit is contained in:
parent
14201c8489
commit
a79d012fcb
1 changed files with 17 additions and 0 deletions
|
@ -9,6 +9,23 @@
|
||||||
{
|
{
|
||||||
<span class="badge">@Loc["Follows you"]</span>
|
<span class="badge">@Loc["Follows you"]</span>
|
||||||
}
|
}
|
||||||
|
@switch (UserProfile.Role)
|
||||||
|
{
|
||||||
|
case Role.Moderator:
|
||||||
|
<span class="badge">
|
||||||
|
<Icon Name="Icons.ShieldWarning" Size="1.3em"/>
|
||||||
|
@Loc["Moderator"]
|
||||||
|
</span>
|
||||||
|
break;
|
||||||
|
case Role.Admin:
|
||||||
|
<span class="badge">
|
||||||
|
<Icon Name="Icons.ShieldStar" Size="1.3em"/>
|
||||||
|
@Loc["Admin"]
|
||||||
|
</span>
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
@if (UserProfile.Bio != null)
|
@if (UserProfile.Bio != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue