CourseWork_BankYouBankrupt/BankYouBankrupt/BankYouBankruptClientApp/Views/Shared/_Layout.cshtml

61 lines
2.5 KiB
Plaintext
Raw Normal View History

2023-05-17 13:47:26 +04:00
@using BankYouBankruptСlientApp
@{
bool authenticated = APIClient.Client != null;
}
2023-05-17 01:00:04 +04:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2023-05-17 13:47:26 +04:00
<title>@ViewData["Title"]</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
2023-05-16 20:05:59 +04:00
<link rel="stylesheet" href="~/css/site.css" />
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<header>
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
2023-05-16 20:05:59 +04:00
<div class="container">
2023-05-17 01:00:04 +04:00
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Profile">
2023-05-16 20:05:59 +04:00
Банк "Вы банкрот"
</a>
<div class="navbar-collapse collapse d-sm-inline-flex flex-smrow-reverse">
2023-05-17 13:47:26 +04:00
@{ if (authenticated) {
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
2023-05-17 14:27:46 +04:00
<a class="nav-link text-dark" asparea="" asp-controller="Home" asp-action="CardsList">Карты</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asparea="" asp-controller="Home" asp-action="DebitingList">Снятие средств</a>
2023-05-17 13:47:26 +04:00
</li>
2023-05-17 15:18:35 +04:00
<li class="nav-item">
<a class="nav-link text-dark" asparea="" asp-controller="Home" asp-action="CreditingList">Пополнить средства</a>
</li>
2023-05-17 13:47:26 +04:00
</ul>
2023-05-17 14:27:46 +04:00
2023-05-17 13:47:26 +04:00
}
}
</div>
</div>
</nav>
</header>
<div class="container">
<main role="main" class="pb-3">
@RenderBody()
</main>
</div>
<footer class="border-top footer text-muted">
<div class="container">
2023-05-17 01:00:04 +04:00
&copy; 2023 - BankYouBankruptClientApp
</div>
</footer>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
@await RenderSectionAsync("Scripts", required: false)
</body>
2023-05-16 20:05:59 +04:00
</html>