CodeLiturgy.Dashboard/CodeLiturgy.Views/Views/Shared/_HeaderMenu.cshtml

36 lines
1.2 KiB
Plaintext

@using CodeLiturgy.Views.Utils
@using CodeLiturgy.Data.Auth
@using Duende.IdentityServer.Extensions
@{
Layout = null;
var userAuthenticated = User.IsAuthenticated();
var user = ViewData.GetUserViewData();
var rootUrl = SessionConstants.CookieDomain;
var menu = LayoutCache.GetDefaultHeaderMenu(ViewData, User.IsAuthenticated());
}
<div class="menu top">
<div class="row no-wrap middle-align">
@if (menu is {Count: > 0 })
{
@foreach (var record in menu)
{
<div class="col">
<nav class="left-align">
<a href="@record.Location" class="white-text">
@record.Name
</a>
</nav>
</div>
}
}
@*<div class="col">
<nav class="right-align">
<a href="#"
target="_blank">
<button class="events-button">See Full Events Calendar</button>
</a>
</nav>
</div>*@
</div>
</div>