diff --git a/assets/javascripts/discourse/templates/components/product-list.hbs b/assets/javascripts/discourse/templates/components/product-list.hbs index 7ff6da4..7d8b465 100644 --- a/assets/javascripts/discourse/templates/components/product-list.hbs +++ b/assets/javascripts/discourse/templates/components/product-list.hbs @@ -1,6 +1,6 @@ {{#each products as |product|}} -
+

{{product.name}}

@@ -16,3 +16,9 @@ {{/if}}

{{/each}} + +{{#unless currentUser}} +

+ {{i18n 'discourse_patrons.subscribe.unauthenticated'}} +

+{{/unless}} diff --git a/assets/javascripts/discourse/templates/patrons/subscribe/index.hbs b/assets/javascripts/discourse/templates/patrons/subscribe/index.hbs index 92ae934..b5c9636 100644 --- a/assets/javascripts/discourse/templates/patrons/subscribe/index.hbs +++ b/assets/javascripts/discourse/templates/patrons/subscribe/index.hbs @@ -1,2 +1,4 @@ -{{product-list products=model}} +
+ {{product-list products=model}} +
diff --git a/assets/stylesheets/common/discourse-patrons-layout.scss b/assets/stylesheets/common/discourse-patrons-layout.scss index 0211bbd..c898abe 100644 --- a/assets/stylesheets/common/discourse-patrons-layout.scss +++ b/assets/stylesheets/common/discourse-patrons-layout.scss @@ -31,3 +31,10 @@ } } } + +#product-list { + padding: 40px 120px; + .product { + margin-bottom: 60px; + } +} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 376acc9..6d81b90 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -38,11 +38,11 @@ en: confirm: Are you sure you want to cancel this subscription? subscribe: title: Subscribe + unauthenticated: You need to create an account to subscribe. card: title: Payment customer: title: Customer Details - empty: We couldn't find a customer identifier in our system. A new one will be created for you. buttons: subscribe: Subscribe one_time: