2026-12-02 00:20:49 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="cs">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
|
<title>@(ViewData["Title"] is string title ? $"{title} · NTBug" : "NTBug")</title>
|
|
|
|
|
<link rel="icon" href="~/favicon.svg" type="image/svg+xml" />
|
|
|
|
|
<link rel="stylesheet" href="~/lib/bootstrap/css/bootstrap.min.css" />
|
|
|
|
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<a class="visually-hidden-focusable skip-link" href="#main">Přeskočit na obsah</a>
|
|
|
|
|
|
|
|
|
|
<header class="app-header border-bottom">
|
|
|
|
|
<nav class="navbar navbar-expand-lg container-xl" aria-label="Hlavní menu">
|
|
|
|
|
<a class="navbar-brand app-brand" asp-controller="Home" asp-action="Index">
|
2026-12-02 01:17:54 +01:00
|
|
|
<img class="app-brand-mark" src="~/favicon.svg" alt="" width="32" height="32" />
|
2026-12-02 00:20:49 +01:00
|
|
|
<span>NTBug <span class="app-brand-sub">helpdesk</span></span>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
@if (User.Identity?.IsAuthenticated == true)
|
|
|
|
|
{
|
|
|
|
|
var controller = ViewContext.RouteData.Values["controller"] as string;
|
|
|
|
|
var action = ViewContext.RouteData.Values["action"] as string;
|
|
|
|
|
|
|
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNav"
|
|
|
|
|
aria-controls="mainNav" aria-expanded="false" aria-label="Zobrazit menu">
|
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
|
</button>
|
|
|
|
|
<div class="collapse navbar-collapse" id="mainNav">
|
|
|
|
|
<ul class="navbar-nav me-auto">
|
|
|
|
|
@foreach (var item in Navigation.For(User))
|
|
|
|
|
{
|
|
|
|
|
var active = item.Controller == controller && item.Action == action;
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link @(active ? "active" : "")" aria-current="@(active ? "page" : null)"
|
|
|
|
|
asp-controller="@item.Controller" asp-action="@item.Action">@item.Text</a>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
@await Html.PartialAsync("_UserMenu")
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<main id="main" class="container-xl app-main">
|
|
|
|
|
@await Html.PartialAsync("_Alerts")
|
|
|
|
|
@RenderBody()
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<footer class="app-footer container-xl">
|
|
|
|
|
Univerzitní helpdesk a portál návrhů na zlepšení · NNPRO
|
2026-12-02 18:54:15 +01:00
|
|
|
<span class="app-footer-version">verze @AppVersion.Display</span>
|
2026-12-02 00:20:49 +01:00
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
<script src="~/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
|
2026-12-02 13:50:01 +01:00
|
|
|
<script src="~/js/site.js" asp-append-version="true"></script>
|
2026-12-02 00:20:49 +01:00
|
|
|
@await RenderSectionAsync("Scripts", required: false)
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|