FEATURE: Upgrades, translations

* Name space the translations for extensibilty
* Upgrade the Stripe Gem
* Correct the plugin version in the Stripe setup info
This commit is contained in:
Rimian Perkins 2019-09-23 12:04:30 +10:00
parent 9e2d3551e0
commit 8b61747fbd
3 changed files with 14 additions and 13 deletions

View File

@ -6,11 +6,11 @@
<table class="table discourse-patrons-admin">
<thead>
<tr>
<th>{{i18n 'discourse_patrons.admin.table.head.user'}}</th>
<th>{{i18n 'discourse_patrons.admin.table.head.payment_intent'}}</th>
<th>{{i18n 'discourse_patrons.admin.table.head.receipt_email'}}</th>
<th>{{i18n 'discourse_patrons.admin.payment_history.table.head.user'}}</th>
<th>{{i18n 'discourse_patrons.admin.payment_history.table.head.payment_intent'}}</th>
<th>{{i18n 'discourse_patrons.admin.payment_history.table.head.receipt_email'}}</th>
<th onclick={{action "orderPayments" "created_at"}} class="sortable">{{i18n 'created'}}</th>
<th class="amount" onclick={{action "orderPayments" "amount"}} class="sortable amount">{{i18n 'discourse_patrons.admin.table.head.amount'}}</th>
<th class="amount" onclick={{action "orderPayments" "amount"}} class="sortable amount">{{i18n 'discourse_patrons.admin.payment_history.table.head.amount'}}</th>
</tr>
</thead>
{{#each model as |payment|}}

View File

@ -38,9 +38,10 @@ en:
confirm_payment: Confirm payment
success: Go back
admin:
table:
head:
user: User
payment_intent: Payment ID
receipt_email: Receipt Email
amount: Amount
payment_history:
table:
head:
user: User
payment_intent: Payment ID
receipt_email: Receipt Email
amount: Amount

View File

@ -2,13 +2,13 @@
# name: discourse-patrons
# about: Integrates Stripe into Discourse to allow visitors to make payments
# version: 1.2.0
# version: 1.2.1
# url: https://github.com/rimian/discourse-patrons
# authors: Rimian Perkins
enabled_site_setting :discourse_patrons_enabled
gem 'stripe', '5.1.1'
gem 'stripe', '5.2.0'
register_asset "stylesheets/common/discourse-patrons.scss"
register_asset "stylesheets/mobile/discourse-patrons.scss"
@ -29,7 +29,7 @@ end
after_initialize do
::Stripe.api_version = "2019-08-14"
::Stripe.set_app_info('Discourse Patrons', version: '1.0.0', url: 'https://github.com/rimian/discourse-patrons')
::Stripe.set_app_info('Discourse Patrons', version: '1.2.1', url: 'https://github.com/rimian/discourse-patrons')
[
"../lib/discourse_patrons/engine",