From e365ced5312f970ec7b232040ccf09782c151529 Mon Sep 17 00:00:00 2001 From: Isaac Janzen <50783505+janzenisaac@users.noreply.github.com> Date: Sun, 28 May 2023 09:32:27 -0500 Subject: [PATCH] DEV: Use angle bracket syntax (#167) --- ...lugins-discourse-subscriptions-coupons.hbs | 8 ++--- .../templates/components/payment-options.hbs | 10 +++---- .../templates/components/product-list.hbs | 2 +- .../subscriptions-campaign.hbs | 2 +- .../subscriptions-campaign-topic-footer.hbs | 2 +- .../subscriptions-campaign-sidebar.hbs | 2 +- .../discourse/templates/subscribe/index.hbs | 4 +-- .../discourse/templates/subscribe/show.hbs | 30 +++++++++---------- .../user/billing/subscriptions/card.hbs | 2 +- package.json | 2 +- yarn.lock | 2 +- 11 files changed, 33 insertions(+), 33 deletions(-) diff --git a/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-coupons.hbs b/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-coupons.hbs index 3e6de1c..899874b 100644 --- a/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-coupons.hbs +++ b/assets/javascripts/discourse/templates/admin/plugins-discourse-subscriptions-coupons.hbs @@ -53,9 +53,9 @@ {{/unless}} {{#if creating}} - {{create-coupon-form - cancel=(action "closeCreateForm") - create=(action "createNewCoupon") - }} + {{/if}} {{/if}} \ No newline at end of file diff --git a/assets/javascripts/discourse/templates/components/payment-options.hbs b/assets/javascripts/discourse/templates/components/payment-options.hbs index d81899c..6966262 100644 --- a/assets/javascripts/discourse/templates/components/payment-options.hbs +++ b/assets/javascripts/discourse/templates/components/payment-options.hbs @@ -4,10 +4,10 @@
{{#each orderedPlans as |plan|}} - {{payment-plan - plan=plan - selectedPlan=selectedPlan - clickPlan=(action "clickPlan") - }} + {{/each}}
\ No newline at end of file diff --git a/assets/javascripts/discourse/templates/components/product-list.hbs b/assets/javascripts/discourse/templates/components/product-list.hbs index fc22336..80f638c 100644 --- a/assets/javascripts/discourse/templates/components/product-list.hbs +++ b/assets/javascripts/discourse/templates/components/product-list.hbs @@ -2,6 +2,6 @@

{{i18n "discourse_subscriptions.subscribe.no_products"}}

{{else}} {{#each products as |product|}} - {{product-item product=product isLoggedIn=isLoggedIn}} + {{/each}} {{/if}} \ No newline at end of file diff --git a/assets/javascripts/discourse/templates/connectors/above-main-container/subscriptions-campaign.hbs b/assets/javascripts/discourse/templates/connectors/above-main-container/subscriptions-campaign.hbs index 8007616..a467e54 100644 --- a/assets/javascripts/discourse/templates/connectors/above-main-container/subscriptions-campaign.hbs +++ b/assets/javascripts/discourse/templates/connectors/above-main-container/subscriptions-campaign.hbs @@ -1 +1 @@ -{{campaign-banner connectorName="above-main-container"}} \ No newline at end of file + \ No newline at end of file diff --git a/assets/javascripts/discourse/templates/connectors/after-topic-footer-buttons/subscriptions-campaign-topic-footer.hbs b/assets/javascripts/discourse/templates/connectors/after-topic-footer-buttons/subscriptions-campaign-topic-footer.hbs index a2b73ec..20fea51 100644 --- a/assets/javascripts/discourse/templates/connectors/after-topic-footer-buttons/subscriptions-campaign-topic-footer.hbs +++ b/assets/javascripts/discourse/templates/connectors/after-topic-footer-buttons/subscriptions-campaign-topic-footer.hbs @@ -1 +1 @@ -{{campaign-banner connectorName="after-topic-footer-buttons"}} \ No newline at end of file + \ No newline at end of file diff --git a/assets/javascripts/discourse/templates/connectors/before-topic-list/subscriptions-campaign-sidebar.hbs b/assets/javascripts/discourse/templates/connectors/before-topic-list/subscriptions-campaign-sidebar.hbs index ba0decd..04bcb5a 100644 --- a/assets/javascripts/discourse/templates/connectors/before-topic-list/subscriptions-campaign-sidebar.hbs +++ b/assets/javascripts/discourse/templates/connectors/before-topic-list/subscriptions-campaign-sidebar.hbs @@ -1 +1 @@ -{{campaign-banner connectorName="before-topic-list"}} \ No newline at end of file + \ No newline at end of file diff --git a/assets/javascripts/discourse/templates/subscribe/index.hbs b/assets/javascripts/discourse/templates/subscribe/index.hbs index 9c3f979..a149651 100644 --- a/assets/javascripts/discourse/templates/subscribe/index.hbs +++ b/assets/javascripts/discourse/templates/subscribe/index.hbs @@ -1,5 +1,5 @@ {{#unless isLoggedIn}} - {{login-required}} + {{/unless}} -{{product-list products=model isLoggedIn=isLoggedIn}} \ No newline at end of file + \ No newline at end of file diff --git a/assets/javascripts/discourse/templates/subscribe/show.hbs b/assets/javascripts/discourse/templates/subscribe/show.hbs index 354a8c0..fa1981b 100644 --- a/assets/javascripts/discourse/templates/subscribe/show.hbs +++ b/assets/javascripts/discourse/templates/subscribe/show.hbs @@ -19,16 +19,16 @@
- {{payment-options plans=model.plans selectedPlan=selectedPlan}} +
- {{subscribe-card cardElement=cardElement}} + {{#if loading}} {{loading-spinner}} {{else if isAnonymous}} - {{login-required}} + {{else}}
- {{subscribe-country-select - value=cardholderAddress.country - onChange=(action "changeCountry") - }} + {{#if isCountryUS}} - {{subscribe-us-state-select - value=cardholderAddress.state - onChange=(action "changeState") - }} + {{else if isCountryCA}} - {{subscribe-ca-province-select - value=cardholderAddress.state - onChange=(action "changeState") - }} + {{else}}
- {{subscribe-card cardElement=cardElement class="input-xxlarge"}} +