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;
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
@Scripts.Render("~/bundles/jqueryval")
|
||||
@Scripts.Render("~/bundles/jquerytable")
|
||||
@Scripts.Render("~/bundles/jqueryui")
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="~/Scripts/js.cookie-1.5.1.min.js"></script>
|
||||
<script src="~/Scripts/moment-with-locales.min.js"></script>
|
||||
<script type="text/javascript" src="~/Scripts/Views/IoTApp.js"></script>
|
||||
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче