From 4f64193e85ea7b39f8cc065c3cf204a0954dbe8d Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 10 Jan 2019 14:54:41 +0100 Subject: [PATCH] add rank badge to minimal and fix css in minimal --- .../Crowdfund/ContributeForm.cshtml | 76 ++++++++++--------- .../Crowdfund/MinimalCrowdfund.cshtml | 2 +- .../AppsPublic/Crowdfund/VueCrowdfund.cshtml | 4 +- .../Views/AppsPublic/ViewCrowdfund.cshtml | 3 +- 4 files changed, 47 insertions(+), 38 deletions(-) diff --git a/BTCPayServer/Views/AppsPublic/Crowdfund/ContributeForm.cshtml b/BTCPayServer/Views/AppsPublic/Crowdfund/ContributeForm.cshtml index 586926088..ae576a126 100644 --- a/BTCPayServer/Views/AppsPublic/Crowdfund/ContributeForm.cshtml +++ b/BTCPayServer/Views/AppsPublic/Crowdfund/ContributeForm.cshtml @@ -1,50 +1,56 @@ +@using Microsoft.EntityFrameworkCore.Internal @model BTCPayServer.Models.AppViewModels.ContributeToCrowdfund
@foreach (var item in Model.ViewCrowdfundViewModel.Perks) {
+ @if (Model.ViewCrowdfundViewModel.DisplayPerksRanking && Model.ViewCrowdfundViewModel.PerkCount.ContainsKey(item.Id)) + { + #@(Model.ViewCrowdfundViewModel.Perks.IndexOf(item)+1) + } + @if (!string.IsNullOrEmpty(item.Image)) + { + + } +
+
+
- @if (Model.ViewCrowdfundViewModel.PerkCount.ContainsKey(item.Id)) - { - - } -
+ @if (Model.ViewCrowdfundViewModel.PerkCount.ContainsKey(item.Id)) + { + + } +
} @if (Model.ViewCrowdfundViewModel.Started && !Model.ViewCrowdfundViewModel.Ended) { diff --git a/BTCPayServer/Views/AppsPublic/Crowdfund/MinimalCrowdfund.cshtml b/BTCPayServer/Views/AppsPublic/Crowdfund/MinimalCrowdfund.cshtml index d20c4fdc2..90a9ff358 100644 --- a/BTCPayServer/Views/AppsPublic/Crowdfund/MinimalCrowdfund.cshtml +++ b/BTCPayServer/Views/AppsPublic/Crowdfund/MinimalCrowdfund.cshtml @@ -81,7 +81,7 @@
@(Model.Info.PendingProgressPercentage.GetValueOrDefault(0) + Model.Info.ProgressPercentage.GetValueOrDefault(0))%
Of Goal
-
+
@Model.Info.TotalContributors
diff --git a/BTCPayServer/Views/AppsPublic/Crowdfund/VueCrowdfund.cshtml b/BTCPayServer/Views/AppsPublic/Crowdfund/VueCrowdfund.cshtml index 013f22787..e3d448710 100644 --- a/BTCPayServer/Views/AppsPublic/Crowdfund/VueCrowdfund.cshtml +++ b/BTCPayServer/Views/AppsPublic/Crowdfund/VueCrowdfund.cshtml @@ -231,7 +231,9 @@ - } + + @if (!string.IsNullOrEmpty(Model.EmbeddedCSS)) {