2022-02-07 20:00:51 +00:00
|
|
|
@using Microsoft.AspNetCore.Http;
|
|
|
|
@using Microsoft.AspNetCore.Mvc;
|
|
|
|
@using EFB.Sessions;
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
2021-09-20 06:16:48 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>@ViewData["Title"] - EFB</title>
|
|
|
|
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
|
|
|
<link rel="stylesheet" href="~/css/site.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
2021-09-20 09:41:19 +00:00
|
|
|
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-dark bg-dark border-bottom box-shadow mb-3">
|
2021-09-20 06:16:48 +00:00
|
|
|
<div class="container">
|
2021-09-20 09:41:19 +00:00
|
|
|
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">Electronic Flight Bag</a>
|
2021-09-20 06:16:48 +00:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
|
|
|
aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
|
|
|
<ul class="navbar-nav flex-grow-1">
|
|
|
|
<li class="nav-item">
|
2021-09-20 09:41:19 +00:00
|
|
|
<a class="nav-link text-light" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
|
2021-09-20 06:16:48 +00:00
|
|
|
</li>
|
2022-02-07 20:00:51 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link text-light" asp-area="" asp-controller="Route" asp-action="Index">Route</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link text-light" asp-area="" asp-controller="Navdata" asp-action="Index">Navdata</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link text-light" asp-area="" asp-controller="" asp-action="Index">Charts</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link text-light" asp-area="" asp-controller="" asp-action="Index">FlightSim</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
@{
|
|
|
|
UserModel user = Context.Session.GetObject<UserModel>("User");
|
|
|
|
if (user != null && user.UserToken.TokenValue != null)
|
|
|
|
{
|
|
|
|
<div class="ml-auto">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link text-light" asp-area="" asp-controller="User" asp-action="Logout">Logout (@user.UserToken.TokenValue)</a>
|
|
|
|
</li>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-20 06:16:48 +00:00
|
|
|
</ul>
|
2022-02-07 20:00:51 +00:00
|
|
|
|
|
|
|
|
2021-09-20 06:16:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<div class="container">
|
|
|
|
<main role="main" class="pb-3">
|
|
|
|
@RenderBody()
|
2021-09-20 09:41:19 +00:00
|
|
|
@{
|
|
|
|
//Render body is used to load the relevant view in relation to the controller
|
|
|
|
}
|
2021-09-20 06:16:48 +00:00
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="border-top footer text-muted">
|
|
|
|
<div class="container">
|
2021-09-20 09:41:19 +00:00
|
|
|
© 2021 - EFB - <a href="https://luke-else.co.uk">Luke Else</a>
|
2021-09-20 06:16:48 +00:00
|
|
|
</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>
|
|
|
|
</html>
|