mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add administrative area.
This commit is contained in:
@@ -67,7 +67,6 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<partial name="_LoginPartial" />
|
||||
@RenderBody()
|
||||
<footer class="container-fluid">
|
||||
© 2011-2019
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
@using Microsoft.AspNetCore.Identity
|
||||
@inject SignInManager<IdentityUser> SignInManager
|
||||
@inject UserManager<IdentityUser> UserManager
|
||||
<ul class="navbar-nav">
|
||||
@if (SignInManager.IsSignedIn(User))
|
||||
{
|
||||
<li class="nav-item">
|
||||
<a asp-area="Identity" asp-page="/Account/Manage/Index" class="nav-link text-dark" id="manage" title="Manage">Hello @UserManager.GetUserName(User)!</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<form id="logoutForm" class="form-inline" asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@Url.Action("Index", "Home", new
|
||||
{
|
||||
area = ""
|
||||
})">
|
||||
<button class="btn btn-link nav-link text-dark" id="logout" type="submit">Logout</button>
|
||||
</form>
|
||||
</li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li class="nav-item">
|
||||
<a asp-area="Identity" asp-page="/Account/Register" class="nav-link text-dark" id="register">Register</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a asp-area="Identity" asp-page="/Account/Login" class="nav-link text-dark" id="login">Login</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user