@model BTCPayServer.Plugins.Crowdfund.Models.ViewCrowdfundViewModel @using BTCPayServer.Plugins.Crowdfund.Models @inject BTCPayServer.Services.BTCPayServerEnvironment Env @inject BTCPayServer.Security.ContentSecurityPolicies Csp @{ ViewData["Title"] = Model.Title; Layout = null; Csp.UnsafeEval(); if (!string.IsNullOrEmpty(Model.DisqusShortname)) { Csp.Add("script-src", $"https://{Model.DisqusShortname}.disqus.com"); Csp.Add("script-src", "https://c.disquscdn.com"); } } @if (!string.IsNullOrEmpty(Model.CustomCSSLink)) { } @if (!string.IsNullOrEmpty(Model.EmbeddedCSS)) { @Safe.Raw($"") } @if (!Model.Enabled) { } @if (Model.AnimationsEnabled) { }
@if (!string.IsNullOrEmpty(Model.MainImageUrl)) { }

{{ srvModel.title }}

@if (!string.IsNullOrEmpty(Model.Tagline)) {

} @if (Model.TargetAmount.HasValue) {

@Math.Round(Model.TargetAmount.GetValueOrDefault(0)) @Model.TargetCurrency

@if (Model.ResetEveryAmount > 0 && !Model.NeverReset) { Dynamic } @if (Model.EnforceTargetAmount) { Hardcap Goal } else { Softcap Goal }
} @if (!Model.Started && Model.StartDate.HasValue) {
Starts @TimeZoneInfo.ConvertTimeFromUtc(Model.StartDate.Value, TimeZoneInfo.Local)
} else if (Model.Started && !Model.Ended && Model.EndDate.HasValue) {
Ends @TimeZoneInfo.ConvertTimeFromUtc(Model.EndDate.Value, TimeZoneInfo.Local)
} else if (Model.Started && !Model.Ended && !Model.EndDate.HasValue) {
Currently active!
}
@if (Model.TargetAmount.HasValue) {
}

@Math.Round(Model.Info.CurrentAmount + Model.Info.CurrentPendingAmount, Model.CurrencyData.Divisibility) @Model.TargetCurrency

Raised
  • {{stat.label}} {{stat.value}}

@Math.Round(Model.Info.PendingProgressPercentage.GetValueOrDefault(0) + Model.Info.ProgressPercentage.GetValueOrDefault(0))%

Of Goal
Goal resets every {{srvModel.resetEveryAmount}} {{srvModel.resetEvery}} {{srvModel.resetEveryAmount>1?'s': ''}}

@Model.Info.TotalContributors

Contributors
@if (Model.StartDate.HasValue || Model.EndDate.HasValue) {
@if (!Model.Started && Model.StartDate.HasValue) {

@TimeZoneInfo.ConvertTimeFromUtc(Model.StartDate.Value, TimeZoneInfo.Local)

Start Date
} else if (Model.Started && !Model.Ended && Model.EndDate.HasValue) {

@TimeZoneInfo.ConvertTimeFromUtc(Model.EndDate.Value, TimeZoneInfo.Local)

End Date
} else if (Model.Ended) {

Campaign not active

}
    @if (Model.StartDate.HasValue) {
  • {{started? "Started" : "Starts"}} {{startDate}}
  • } @if (Model.EndDate.HasValue) {
  • {{ended? "Ended" : "Ends"}} {{endDate}}
  • }
}
Updated @Model.Info.LastUpdated
@if (!Model.SimpleDisplay) { }