@model BTCPayServer.Models.AppViewModels.ViewCrowdfundViewModel @addTagHelper *, BundlerMinifier.TagHelpers @inject ISettingsRepository SettingsRepository @using BTCPayServer.Abstractions.Contracts @using BTCPayServer.Models.AppViewModels @inject BTCPayServer.Services.ThemeSettings Theme @{ ViewData["Title"] = Model.Title; Layout = null; } @if (!string.IsNullOrEmpty(Model.CustomCSSLink)) { } @if (!string.IsNullOrEmpty(Model.EmbeddedCSS)) { @Safe.Raw($"") } @if (!Model.Enabled) { } @if (Model.AnimationsEnabled) { }
@if (!string.IsNullOrEmpty(Model.MainImageUrl)) { @Model.Title }

@Model.Title

@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.TargetAmount.GetValueOrDefault(0)) @Model.TargetCurrency

@if (Model.ResetEveryAmount > 0 && !Model.NeverReset) { Dynamic } @if (Model.EnforceTargetAmount) { Hardcap Goal } else { Softcap Goal }
}
@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}}
  • }
}
@if (!string.IsNullOrEmpty(Model.Tagline)) {

@Model.Tagline

}

@if (!Model.SimpleDisplay) { @*We need to make sure btcpay.js is not bundled, else it will not work if there is a RootPath*@ }