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