Merge pull request #158 from Azure/az_role_display_fix
Getting back user role to account drop down.
This commit is contained in:
Коммит
caefc72ff7
|
@ -4008,7 +4008,6 @@ tbody.collapse.in {
|
|||
}
|
||||
.account {
|
||||
display: block;
|
||||
line-height: 2.5em;
|
||||
text-align: right;
|
||||
position: relative;
|
||||
float: right;
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
.account {
|
||||
display: block;
|
||||
line-height: 2.5em;
|
||||
text-align: right;
|
||||
position: relative;
|
||||
float: right;
|
||||
|
|
|
@ -73,6 +73,18 @@
|
|||
<span class="account-avatar"></span>
|
||||
<span class="account">
|
||||
<span class="account-name">@PrincipalHelper.GetEmailAddress(User)</span>
|
||||
@if (User.IsInRole("Admin"))
|
||||
{
|
||||
<span class="account-subtitle">@Strings.AdministratorRole</span>
|
||||
}
|
||||
else if (User.IsInRole("ReadOnly"))
|
||||
{
|
||||
<span class="account-subtitle">@Strings.ReadOnlyRole</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="account-subtitle">@Strings.ImplicitReadOnlyRole</span>
|
||||
}
|
||||
</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu account-menu" role="menu" aria-labelledby="account-menu">
|
||||
|
|
Загрузка…
Ссылка в новой задаче