Display roles
This commit is contained in:
@ -27,5 +27,7 @@ namespace Yavsc.ViewModels.Manage
|
||||
public long ActiveCommandCount { get; set; }
|
||||
|
||||
public bool HasDedicatedCalendar { get; set; }
|
||||
|
||||
public IEnumerable<string> Roles { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -16,6 +16,11 @@
|
||||
[<a asp-controller="Manage"
|
||||
asp-action="CHUN">@SR["Change"]</a>]
|
||||
</dd>
|
||||
@if (Model.Roles.Count()>0) {
|
||||
<dt>@SR["Roles"]:</dt>
|
||||
<dd>
|
||||
@string.Join(", ",Model.Roles)
|
||||
</dd>}
|
||||
<dt>@SR["Password"]:</dt>
|
||||
<dd>[@if (Model.HasPassword)
|
||||
{<a asp-controller="Manage"
|
||||
|
Reference in New Issue
Block a user