This commit is contained in:
shadowik 2023-05-17 13:47:26 +04:00
parent 013b06ae68
commit b03d2237a7

View File

@ -1,10 +1,15 @@
 @using BankYouBankruptСlientApp
@{
bool authenticated = APIClient.Client != null;
}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - BankYouBankruptClientApp</title> <title>@ViewData["Title"]</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" /> <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" /> <link rel="stylesheet" href="~/css/site.css" />
<script src="~/lib/jquery/dist/jquery.min.js"></script> <script src="~/lib/jquery/dist/jquery.min.js"></script>
@ -18,11 +23,14 @@
Банк "Вы банкрот" Банк "Вы банкрот"
</a> </a>
<div class="navbar-collapse collapse d-sm-inline-flex flex-smrow-reverse"> <div class="navbar-collapse collapse d-sm-inline-flex flex-smrow-reverse">
<ul class="navbar-nav flex-grow-1"> @{ if (authenticated) {
<li class="nav-item"> <ul class="navbar-nav flex-grow-1">
<a class="nav-link text-dark" asparea="" asp-controller="Home" asp-action="Index">Карты</a> <li class="nav-item">
</li> <a class="nav-link text-dark" asparea="" asp-controller="Home" asp-action="Index">Карты</a>
</ul> </li>
</ul>
}
}
</div> </div>
</div> </div>
</nav> </nav>