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

36 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-10-30 19:48:24 +03:00
@using CodeLiturgy.Views.Utils
2022-11-18 03:15:53 +03:00
@using CodeLiturgy.Data.Auth
2022-11-18 03:33:03 +03:00
@using Duende.IdentityServer.Extensions
2022-09-26 04:05:23 +03:00
@{
Layout = null;
2022-10-27 20:13:02 +03:00
var userAuthenticated = User.IsAuthenticated();
var user = ViewData.GetUserViewData();
var rootUrl = SessionConstants.CookieDomain;
2022-11-17 00:17:44 +03:00
var menu = LayoutCache.GetDefaultHeaderMenu(ViewData, User.IsAuthenticated());
2022-09-26 04:05:23 +03:00
}
2022-11-23 01:39:28 +03:00
<div class="menu top">
<div class="row no-wrap middle-align">
2022-09-26 04:05:23 +03:00
@if (menu is {Count: > 0 })
2022-11-23 01:39:28 +03:00
{
@foreach (var record in menu)
{
<div class="col">
<nav class="left-align">
<a href="@record.Location" class="white-text">
@record.Name
</a>
</nav>
2022-10-27 20:13:02 +03:00
</div>
2022-11-23 01:39:28 +03:00
}
}
@*<div class="col">
<nav class="right-align">
<a href="#"
target="_blank">
<button class="events-button">See Full Events Calendar</button>
</a>
</nav>
</div>*@
2022-09-26 04:05:23 +03:00
</div>
2022-11-17 00:17:44 +03:00
</div>