Files
BTCPayServerPlugins/Plugins/BTCPayServer.Plugins.Subscriptions/Views/Subscription/View.cshtml
2024-04-11 15:10:57 +02:00

45 lines
1.5 KiB
Plaintext

@using Microsoft.AspNetCore.Routing
@using Microsoft.AspNetCore.Mvc.TagHelpers
@using BTCPayServer.Models
@using BTCPayServer.Services
@inject DisplayFormatter DisplayFormatter
@model BTCPayServer.Plugins.Subscriptions.SubscriptionAppSettings
@{
var appId = Context.GetRouteValue("appId");
StoreBrandingViewModel storeBranding = (StoreBrandingViewModel) ViewData["StoreBranding"];
Layout = null;
}
<!DOCTYPE html>
<html lang="en">
<head>
<partial name="LayoutHead"/>
</head>
<body class="min-vh-100">
<div id="Subscription" class="public-page-wrap">
<partial name="_StoreHeader" model="(Model.SubscriptionName, storeBranding)"/>
<main>
<partial name="_StatusMessage"/>
<div class="text-muted mb-4 text-center lead ">@Model.DurationDays day@(Model.DurationDays>1?"s": "") subscription for @DisplayFormatter.Currency(Model.Price, Model.Currency)</div>
@if (!string.IsNullOrEmpty(Model.Description))
{
<div class="subscription-description lead text-center">@Safe.Raw(Model.Description)</div>
}
<div class="text-center w-100 mt-4"> <a asp-action="Subscribe" asp-route-appId="@appId" asp- class="btn btn-primary btn-lg m-auto">Subscribe</a></div>
</main>
<footer class="store-footer">
<a class="store-powered-by" href="https://btcpayserver.org" target="_blank" rel="noreferrer noopener">
Powered by <partial name="_StoreFooterLogo"/>
</a>
</footer>
</div>
<partial name="LayoutFoot"/>
</body>
</html>