43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
@using CodeLiturgy.Views.Utils
|
|
@using CodeLiturgy.Data.Auth
|
|
@using Duende.IdentityServer.Extensions
|
|
@using Microsoft.Extensions.Hosting.Internal
|
|
@{
|
|
Layout = null;
|
|
var userAuthenticated = User.IsAuthenticated();
|
|
var user = ViewData.GetUserViewData();
|
|
var rootUrl = SessionConstants.CookieDomain;
|
|
var menu = LayoutCache.GetDefaultHeaderMenu(ViewData, User.IsAuthenticated());
|
|
var isDevelopment = false;
|
|
#if DEBUG
|
|
isDevelopment = true;
|
|
#endif
|
|
}
|
|
<div class="menu top">
|
|
<div class="row no-wrap middle-align">
|
|
<div class="col">
|
|
<nav class="left-align">
|
|
@if (menu is {Count: > 0 })
|
|
{
|
|
@foreach (var record in menu)
|
|
{
|
|
<a href="@record.Location" class="white-text">
|
|
@record.Name
|
|
</a>
|
|
}
|
|
}
|
|
</nav>
|
|
</div>
|
|
<div class="col">
|
|
<nav class="right-align">
|
|
@if (isDevelopment)
|
|
{
|
|
<a href="/api/swagger" target="_blank" class="white-text">
|
|
Swagger API
|
|
</a>
|
|
}
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|