diff --git a/assets/javascripts/discourse/templates/choice/form.hbs b/assets/javascripts/discourse/templates/choice/form.hbs index 18294ba..8066f03 100644 --- a/assets/javascripts/discourse/templates/choice/form.hbs +++ b/assets/javascripts/discourse/templates/choice/form.hbs @@ -3,12 +3,27 @@
-
- {{text-field}} -
+ +

Stripe Payments

+ +
+ +
diff --git a/assets/javascripts/discourse/templates/connectors/user-profile-primary/stripe.hbs b/assets/javascripts/discourse/templates/connectors/user-profile-primary/stripe.hbs index b71e57c..0482ca9 100644 --- a/assets/javascripts/discourse/templates/connectors/user-profile-primary/stripe.hbs +++ b/assets/javascripts/discourse/templates/connectors/user-profile-primary/stripe.hbs @@ -1,17 +1,2 @@ - -
- -
+Choice page diff --git a/lib/choice-discourse/engine.rb b/lib/choice-discourse/engine.rb new file mode 100644 index 0000000..d5aa639 --- /dev/null +++ b/lib/choice-discourse/engine.rb @@ -0,0 +1,6 @@ +module ::Choice + class Engine < ::Rails::Engine + engine_name 'choice' + isolate_namespace Choice + end +end diff --git a/plugin.rb b/plugin.rb index 75b8e76..00594b5 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,6 +1,6 @@ # name: choice-plugin # about: Integrating Discourse with Stripe -# version: 0.0.3 +# version: 0.1.0 # authors: Rimian Perkins gem 'stripe', '1.58.0' @@ -12,12 +12,7 @@ Rails.configuration.stripe = { Stripe.api_key = Rails.configuration.stripe[:secret_key] -module ::Choice - class Engine < ::Rails::Engine - engine_name 'choice' - isolate_namespace Choice - end -end +load File.expand_path('../lib/choice-discourse/engine.rb', __FILE__) Discourse::Application.routes.prepend do mount ::Choice::Engine, at: '/choice'