mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-21 07:56:09 +03:00
56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>JetHerald</title>
|
|
<link rel="stylesheet" href="~/css/global.css" />
|
|
@RenderSection("Stylesheets", required: false)
|
|
</head>
|
|
<body>
|
|
<header class="flex-container">
|
|
<div class="inner-element">
|
|
<div class="helper">
|
|
<nav>
|
|
|
|
<div class="helper">
|
|
<img src="~/img/PB.svg" alt="PBug" class="logo" width="32" height="32">
|
|
</div>
|
|
@if (Context.UserCan("dashboard"))
|
|
{
|
|
<a asp-action="Index" asp-controller="Dashboard">Dashboard</a>
|
|
}
|
|
@if (Context.UserCan("admin"))
|
|
{
|
|
<a asp-action="Index" asp-controller="Admin">Admin tools</a>
|
|
}
|
|
@if (User.IsAnonymous())
|
|
{
|
|
<a asp-action="Login" asp-controller="Login">Login</a>
|
|
<a asp-action="Register" asp-controller="Registration">Register</a>
|
|
}
|
|
else
|
|
{
|
|
<a asp-action="LogOut" asp-controller="Login">Log Out</a>
|
|
}
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="page-mid">
|
|
<main>
|
|
@RenderBody()
|
|
</main>
|
|
</div>
|
|
|
|
<footer>
|
|
@RenderSection("footer", required: false)
|
|
Rendered in @(Context.Features.Get<RequestTimeFeature>().Stopwatch.Elapsed.TotalMilliseconds) ms
|
|
</footer>
|
|
|
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
|
@RenderSection("Scripts", required: false)
|
|
</body>
|
|
</html>
|