Files
hrynco-notification-service/HrynCo.NotificationService.Web/Views/Shared/_Layout.cshtml
T
agrynco aba4173827 feat(templates): add localized push templates and actions
Share template keys across email and push with independent editors and revisions. Render localized actions and preserve version-one delivery.

Ref: IT-1627
2026-10-31 09:38:05 +02:00

57 lines
2.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@{
var currentController = ViewContext.RouteData.Values["controller"]?.ToString() ?? "";
bool isServices = currentController.Equals("AdminServices", StringComparison.OrdinalIgnoreCase)
|| currentController.Equals("AdminTemplates", StringComparison.OrdinalIgnoreCase);
bool isPushChannels = currentController.Equals("AdminPushChannels", StringComparison.OrdinalIgnoreCase);
bool isChannels = currentController.Equals("AdminChannels", StringComparison.OrdinalIgnoreCase);
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>@ViewData["Title"] – Notification Service</title>
<link href="/lib/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"
rel="stylesheet" />
<link href="~/css/admin.css" rel="stylesheet" asp-append-version="true" />
</head>
<body>
<nav class="navbar navbar-dark bg-dark admin-navbar">
<a class="navbar-brand fw-bold" href="/">
<i class="bi bi-bell-fill me-1"></i> Notification Service
</a>
<a class="admin-api-documentation" href="/scalar/v1" target="_blank" rel="noopener noreferrer" aria-label="API documentation (opens in a new tab)">API documentation</a>
</nav>
<div class="container-fluid">
<div class="row">
<nav class="col-md-2 d-none d-md-block sidebar py-3">
<div class="sidebar-section-label">Management</div>
<ul class="nav flex-column px-2">
<li class="nav-item"><a class="nav-link @(isServices ? "active" : "")" href="/admin/services"><i class="bi bi-collection"></i> Services</a></li>
<li class="nav-item">
<a class="nav-link @(isChannels ? "active" : "")" href="/admin/channels">
<i class="bi bi-broadcast"></i> Email Channels
</a>
</li>
<li class="nav-item">
<a class="nav-link @(isPushChannels ? "active" : "")" href="/admin/push-channels">
<i class="bi bi-phone"></i> Push Channels
</a>
</li>
</ul>
</nav>
<main class="col-md-10 ms-sm-auto main-content">
@RenderBody()
</main>
</div>
</div>
<script src="/lib/bootstrap/bootstrap.bundle.min.js"></script>
<script src="~/js/admin-tables.js" asp-append-version="true"></script>
@RenderSection("Scripts", required: false)
</body>
</html>