Updated Navbar Layout
This commit is contained in:
parent
58eef9ea67
commit
5a49e270b9
@ -1,4 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
@using Microsoft.AspNetCore.Http;
|
||||
@using Microsoft.AspNetCore.Mvc;
|
||||
@using EFB.Sessions;
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@ -21,7 +25,34 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-light" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
|
||||
</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>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user