2018-12-11 16:36:25 +01:00
|
|
|
@addTagHelper *, Meziantou.AspNetCore.BundleTagHelpers
|
|
|
|
@inject BTCPayServer.HostedServices.CssThemeManager themeManager
|
|
|
|
@model BTCPayServer.Models.AppViewModels.ViewCrowdfundViewModel
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = Model.Title;
|
|
|
|
Layout = null;
|
|
|
|
}
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="h-100">
|
|
|
|
<head>
|
|
|
|
<title>@Model.Title</title>
|
2018-12-18 16:27:03 +01:00
|
|
|
<meta charset="utf-8"/>
|
2018-12-11 16:36:25 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
2018-12-22 15:02:16 +01:00
|
|
|
<link href="@Context.Request.GetAbsoluteUri(themeManager.BootstrapUri)" rel="stylesheet"/>
|
2018-12-11 16:36:25 +01:00
|
|
|
@if (Model.CustomCSSLink != null)
|
|
|
|
{
|
2018-12-18 16:27:03 +01:00
|
|
|
<link href="@Model.CustomCSSLink" rel="stylesheet"/>
|
2018-12-11 16:36:25 +01:00
|
|
|
}
|
2018-12-27 20:19:21 +01:00
|
|
|
@if (!Context.Request.Query.ContainsKey("simple"))
|
|
|
|
{
|
|
|
|
<script type="text/javascript">
|
|
|
|
var srvModel = @Html.Raw(Json.Serialize(Model));
|
|
|
|
</script>
|
|
|
|
<bundle name="wwwroot/bundles/crowdfund-bundle.min.js"></bundle>
|
|
|
|
<bundle name="wwwroot/bundles/crowdfund-bundle.min.css"></bundle>
|
|
|
|
}
|
|
|
|
@if (!string.IsNullOrEmpty(Model.EmbeddedCSS))
|
|
|
|
{
|
|
|
|
<style>
|
|
|
|
@Html.Raw(Model.EmbeddedCSS);
|
2018-12-22 15:43:40 +01:00
|
|
|
</style>
|
2018-12-27 20:19:21 +01:00
|
|
|
}
|
|
|
|
|
2018-12-11 16:36:25 +01:00
|
|
|
</head>
|
2018-12-27 20:19:21 +01:00
|
|
|
<body>
|
|
|
|
@if (Context.Request.Query.ContainsKey("simple"))
|
|
|
|
{
|
|
|
|
@await Html.PartialAsync("Crowdfund/MinimalCrowdfund", Model)
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<noscript>
|
|
|
|
@await Html.PartialAsync("Crowdfund/MinimalCrowdfund", Model)
|
|
|
|
</noscript>
|
2018-12-31 13:20:00 +01:00
|
|
|
|
|
|
|
if (Model.AnimationsEnabled)
|
|
|
|
{
|
|
|
|
<canvas id="fireworks"></canvas>
|
|
|
|
}
|
2018-12-27 20:19:21 +01:00
|
|
|
@await Html.PartialAsync("Crowdfund/VueCrowdfund", Model)
|
|
|
|
}
|
|
|
|
|
2018-12-11 16:36:25 +01:00
|
|
|
</body>
|
|
|
|
</html>
|