@using CodeLiturgy.Views.Utils @using Duende.IdentityServer.Extensions @using BlueWest.Data.Auth @{ Layout = null; var userAuthenticated = User.IsAuthenticated(); var menu = LayoutCache.GetDefaultHeaderMenu(ViewData, userAuthenticated); var user = ViewData.GetUserViewData(); var rootUrl = SessionConstants.CookieDomain; }
@if (menu is {Count: > 0 }) { @foreach (var record in menu) {
@record.Name
} } @if (userAuthenticated && user != null) {
@user.Email
}