CodeLiturgy.Dashboard/CodeLiturgy.Views/Views/Shared/_FooterMenu.cshtml

38 lines
1.7 KiB
Plaintext
Raw Normal View History

2022-10-30 19:48:24 +03:00
@using CodeLiturgy.Views.Utils
2022-11-17 00:17:44 +03:00
@using Duende.IdentityServer.Extensions
2022-09-26 04:05:23 +03:00
@{
Layout = null;
2022-11-17 00:17:44 +03:00
var menu = LayoutCache.GetDefaultFooterMenu(ViewData, User.IsAuthenticated());
2022-09-26 04:05:23 +03:00
}
2022-10-27 20:13:02 +03:00
@if (menu.Count > 0)
{
<footer class="q-footer q-layout__section--marginal absolute-bottom q-footer--bordered text-secondary">
<div class="q-tabs row no-wrap items-center q-tabs--not-scrollable q-tabs--horizontal q-tabs__arrows--inside text-white">
<div class="q-tabs__content row no-wrap items-center self-stretch hide-scrollbar relative-position q-tabs__content--align-center">
<div style="margin-right: 1rem;">
<a href="/geo" class="router-link-active router-link-exact-active">
<i class="q-icon text-white notranslate material-icons" style="font-size: 24px;">data_usage</i>
</a>
</div>
@if (menu is {Count: > 0 })
2022-09-26 04:05:23 +03:00
{
2022-10-27 20:13:02 +03:00
@foreach (var record in menu)
{
<a href="@record.Location" class="q-tab relative-position self-stretch flex flex-center text-center q-tab--inactive q-tab--no-caps q-focusable q-hoverable cursor-pointer">
<div class="q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable column">
<div class="q-tab__label">@record.Name</div>
</div>
<div class="q-tab__indicator absolute-bottom text-transparent"></div>
</a>
}
2022-09-26 04:05:23 +03:00
}
2022-10-27 20:13:02 +03:00
</div>
2022-09-26 04:05:23 +03:00
</div>
2022-10-27 20:13:02 +03:00
</footer>
}