diff --git a/assets/javascripts/discourse/components/campaign-banner.hbs b/assets/javascripts/discourse/components/campaign-banner.hbs index d0d4043..ad2a409 100644 --- a/assets/javascripts/discourse/components/campaign-banner.hbs +++ b/assets/javascripts/discourse/components/campaign-banner.hbs @@ -1,12 +1,12 @@ -{{#if shouldShow}} +{{#if this.shouldShow}}
- {{#if isGoalMet}} + {{#if this.isGoalMet}}

{{i18n "discourse_subscriptions.campaign.success_title"}}

@@ -23,11 +23,11 @@ {{i18n "discourse_subscriptions.campaign.body"}}

- {{#if product}} + {{#if this.product}} {{d-icon "far-heart"}} @@ -48,7 +48,7 @@
- {{#if isGoalMet}} + {{#if this.isGoalMet}}
@@ -56,13 +56,13 @@
- {{#if subscriberGoal}} + {{#if this.subscriberGoal}}

{{html-safe (i18n "discourse_subscriptions.campaign.goal_comparison" - current=subscribers - goal=goalTarget + current=this.subscribers + goal=this.goalTarget ) }} {{i18n "discourse_subscriptions.campaign.subscribers"}} @@ -72,15 +72,18 @@ {{html-safe (i18n "discourse_subscriptions.campaign.goal_comparison" - current=(format-currency currency amountRaised) - goal=(format-currency currency goalTarget) + current=(format-currency this.currency this.amountRaised) + goal=(format-currency this.currency this.goalTarget) ) }} {{i18n "discourse_subscriptions.campaign.raised"}}

- {{#if showContributors}} - + {{#if this.showContributors}} +

@@ -91,7 +94,7 @@

- {{#each contributors as |contributor|}} + {{#each this.contributors as |contributor|}} {{avatar contributor avatarTemplatePath="avatar_template" @@ -106,19 +109,19 @@ {{/if}} {{/if}} {{else}} - {{#if subscriberGoal}} + {{#if this.subscriberGoal}}

{{html-safe (i18n "discourse_subscriptions.campaign.goal_comparison" - current=subscribers - goal=goalTarget + current=this.subscribers + goal=this.goalTarget ) }} {{i18n "discourse_subscriptions.campaign.subscribers"}} @@ -126,24 +129,24 @@ {{else}}

{{html-safe (i18n "discourse_subscriptions.campaign.goal_comparison" - current=(format-currency currency amountRaised) - goal=(format-currency currency goalTarget) + current=(format-currency this.currency this.amountRaised) + goal=(format-currency this.currency this.goalTarget) ) }} {{i18n "discourse_subscriptions.campaign.raised"}}

{{/if}} - {{#if showContributors}} - + {{#if this.showContributors}} +

@@ -154,7 +157,7 @@

- {{#each contributors as |contributor|}} + {{#each this.contributors as |contributor|}} {{avatar contributor avatarTemplatePath="avatar_template" diff --git a/assets/javascripts/discourse/components/create-coupon-form.hbs b/assets/javascripts/discourse/components/create-coupon-form.hbs index bae0168..0560f35 100644 --- a/assets/javascripts/discourse/components/create-coupon-form.hbs +++ b/assets/javascripts/discourse/components/create-coupon-form.hbs @@ -4,7 +4,7 @@ - +

@@ -12,15 +12,15 @@ {{i18n "discourse_subscriptions.admin.coupons.discount"}}

@@ -28,7 +28,7 @@ - +

diff --git a/assets/javascripts/discourse/components/payment-options.hbs b/assets/javascripts/discourse/components/payment-options.hbs index 6966262..623495d 100644 --- a/assets/javascripts/discourse/components/payment-options.hbs +++ b/assets/javascripts/discourse/components/payment-options.hbs @@ -3,10 +3,10 @@