77 lines
3.2 KiB
Plaintext
77 lines
3.2 KiB
Plaintext
|
@using Microsoft.AspNetCore.Identity
|
||
|
@using Props.Models
|
||
|
@inject SignInManager<ApplicationUser> SignInManager
|
||
|
@inject UserManager<ApplicationUser> UserManager
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
|
<title>@ViewData["Title"] - Props</title>
|
||
|
<script src="~/js/site.js" asp-append-version="true"></script>
|
||
|
@if (!string.IsNullOrEmpty((ViewData["Specific"] as string)))
|
||
|
{
|
||
|
<script src="@($"~/js/specific/{(ViewData["Specific"])}.js")" asp-append-version="true"></script>
|
||
|
}
|
||
|
</head>
|
||
|
|
||
|
<body class="theme-light">
|
||
|
<header>
|
||
|
<nav id="nav">
|
||
|
<div class="container-fluid">
|
||
|
<a class="navbar-brand" asp-page="/">Props</a>
|
||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent">
|
||
|
<i class="bi bi-list" style="width: 100%; height: auto;"></i>
|
||
|
</button>
|
||
|
<div class="collapse navbar-collapse" id="navbarContent">
|
||
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||
|
<li class="nav-item">
|
||
|
<nav-link class="nav-link" asp-page="Index">Home</nav-link>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<nav-link class="nav-link" asp-page="Search">Search</nav-link>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<nav-link class="nav-link" asp-page="About">About</nav-link>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<ul class="navbar-nav mb-2 mb-lg-0">
|
||
|
@if (SignInManager.IsSignedIn(User))
|
||
|
{
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" asp-area="Identity" asp-page="/Account/Manage/Index" title="Manage">Hello @User.Identity.Name!</a>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<form class="form-inline" asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@Url.Page("/", new { area = "" })" method="post">
|
||
|
<button type="submit" class="nav-link btn btn-link">Logout</button>
|
||
|
</form>
|
||
|
</li>
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" asp-area="Identity" asp-page="/Account/Register">Register</a>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" asp-area="Identity" asp-page="/Account/Login">Login</a>
|
||
|
</li>
|
||
|
}
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|
||
|
<main role="main">
|
||
|
@RenderBody()
|
||
|
</main>
|
||
|
<footer id="footer">
|
||
|
© 2021 - Props - <a asp-area="" asp-page="/Privacy">Privacy</a>
|
||
|
</footer>
|
||
|
|
||
|
@await RenderSectionAsync("Scripts", required: false)
|
||
|
</body>
|
||
|
|
||
|
</html>
|