Updated Navbar Layout

This commit is contained in:
Luke Else 2022-02-07 20:00:51 +00:00
parent 58eef9ea67
commit 5a49e270b9

View File

@ -1,4 +1,8 @@
<!DOCTYPE html> @using Microsoft.AspNetCore.Http;
@using Microsoft.AspNetCore.Mvc;
@using EFB.Sessions;
<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
@ -21,7 +25,34 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link text-light" asp-area="" asp-controller="Home" asp-action="Index">Home</a> <a class="nav-link text-light" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
</li> </li>
<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>
}
}
</ul> </ul>
</div> </div>
</div> </div>
</nav> </nav>