yavsc/src/Yavsc.Org/Views/Shared/_Layout.cshtml
Paul Schneider 650e5f5e30
feat: add resource quotas, PayPal subscriptions and paid disk allowances
Calculate and enforce configurable resource consumption, expose balances in PostIt and document the rule in CGU. Add confirmed monthly PayPal credits and disk quotas of twice the free default for Discovery and five times for Premium, with payment reconciliation, migrations and regression tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-08 05:02:23 +00:00

54 lines
2.3 KiB
Text

@using Yavsc.Models.Messaging;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
<link rel="icon" type="image/svg+xml" href="~/images/yavsc-logo.svg" asp-append-version="true" />
<link rel="alternate icon" type="image/x-icon" href="@SiteSettings.Value.FavIcon" asp-append-version="true" />
<link rel="stylesheet" href="~/lib/jquery-ui/jquery-ui.min.css">
<link rel="stylesheet" href="~/lib/bootstrap.quartz.min.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<script src="~/lib/jquery-ui/external/jquery/jquery.js"></script>
<script src="~/lib/jquery-ui/jquery-ui.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
<title>@ViewBag.Title - Yavsc</title>
@await RenderSectionAsync("header", false)
</head>
<body>
<partial name="_Nav" />
@RenderSection("ctxmenu", required: false)
@if (ViewBag.Notify != null)
{
foreach (Notification n in ViewBag.Notify as IEnumerable<Notification>)
{
<div class="alert alert-info alert-dismissable" data-nid="@n.Id">
<img src="~/images/Notifications/@(n.icon).png" style="max-height:3em; float: left; margin:1em;" />
<h2 markdown="@n.title"></h2>
<a class="close" data-dismiss="alert" aria-label="close" onclick="notifClick(@n.Id)">@((n.click_action == null) ?
Localizer["Fermer"] : Localizer[n.click_action])</a>
<markdown>@n.body</markdown>
</div>
}
}
@await RenderSectionAsync("subbanner", false)
<div class="container py-4">
@RenderBody()
</div>
<footer class="border-top footer text-muted">
<div class="container">
&copy; WTFPL 2025 - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
- <a asp-area="" asp-controller="Home" asp-action="CGU">CGU de PostIt et de Yavsc</a>
- <a asp-area="" asp-controller="ResourceSubscription" asp-action="Index">Abonnements</a>
</div>
</footer>
@await RenderSectionAsync("scripts", false)
</body>
</html>