diff --git a/assets/javascripts/discourse/templates/donate.hbs b/assets/javascripts/discourse/templates/donate.hbs index cddcda4..14df9a4 100644 --- a/assets/javascripts/discourse/templates/donate.hbs +++ b/assets/javascripts/discourse/templates/donate.hbs @@ -11,3 +11,30 @@ onCompleteTransation=(action "stripeTransationCompleteCtr") }} + +
+

{{i18n 'discourse_donations.donations.title'}}

+ {{#if loadingDonations}} + {{i18n 'discourse_donations.donations.loading'}} + {{loading-spinner size='small'}} + {{else}} + {{#if currentUser}} + {{#if hasDonations}} + {{donation-list charges=charges subscriptions=subscriptions customer=customer}} + {{else}} + {{i18n 'discourse_donations.donations.none'}} + {{/if}} + {{else}} + {{#if hasDonations}} + {{donation-list charges=charges subscriptions=subscriptions customer=customer}} + {{else}} + {{#if hasEmailResult}} + {{i18n 'discourse_donations.donations.none_email' email=email}} + {{else}} + {{input value=email placeholder=(i18n 'email')}} + {{d-button action='loadDonations' label='discourse_donations.donations.load' disabled=loadDonationsDisabled}} + {{/if}} + {{/if}} + {{/if}} + {{/if}} +
diff --git a/plugin.rb b/plugin.rb index 67bc13a..d643306 100644 --- a/plugin.rb +++ b/plugin.rb @@ -2,7 +2,7 @@ # name: discourse-donations # about: Integrates Stripe into Discourse to allow visitors to make donations -# version: 1.12.1 +# version: 1.12.2 # url: https://github.com/rimian/discourse-donations # authors: Rimian Perkins, Chris Beach, Angus McLeod