diff --git a/app/views/users/_extensions.html.erb b/app/views/users/_extensions.html.erb index 3e93ea9b6..3d1df39c2 100644 --- a/app/views/users/_extensions.html.erb +++ b/app/views/users/_extensions.html.erb @@ -2,24 +2,6 @@ <%= render partial: "publishing_from_rss" %> -
-
-

- <%= t("views.settings.extensions.web") %> - <%= t("core.beta") %> -

-

- <%= t("views.settings.extensions.micro") %><%= t("views.settings.extensions.learn") %> -

-
- <%= form_for(@user, html: { id: nil, class: "grid gap-4" }) do |f| %> -
- <%= f.label :payment_pointer, t("views.settings.extensions.payment"), class: "crayons-field__label" %> - <%= f.text_field :payment_pointer, class: "crayons-textfield", placeholder: "$pay.somethinglikethis.co/value" %> -
- <%= f.hidden_field :tab, value: @tab, id: nil %> - - <% end %> -
+<%= render partial: "web_monetization" %> <%= render partial: "users/integrations_github_repositories", locals: { show_integration: @github_repositories_show } %> diff --git a/app/views/users/_web_monetization.html.erb b/app/views/users/_web_monetization.html.erb new file mode 100644 index 000000000..ecef90ff0 --- /dev/null +++ b/app/views/users/_web_monetization.html.erb @@ -0,0 +1,21 @@ +<% if policy(Article).create? %> +
+
+

+ <%= t("views.settings.extensions.web_monetization.header") %> + <%= t("core.beta") %> +

+

+ <%= t("views.settings.extensions.web_monetization.receive_payments") %> <%= t("views.settings.extensions.web_monetization.learn_more") %> +

+
+ <%= form_for(@user, html: { id: nil, class: "grid gap-4" }) do |f| %> +
+ <%= f.label :payment_pointer, t("views.settings.extensions.web_monetization.payment_pointer"), class: "crayons-field__label" %> + <%= f.text_field :payment_pointer, class: "crayons-textfield", placeholder: "$pay.somethinglikethis.co/value" %> +
+ <%= f.hidden_field :tab, value: @tab, id: nil %> + + <% end %> +
+<% end %> diff --git a/config/locales/views/settings/en.yml b/config/locales/views/settings/en.yml index 2cd0159ba..e32ff4d4c 100644 --- a/config/locales/views/settings/en.yml +++ b/config/locales/views/settings/en.yml @@ -135,9 +135,6 @@ en: heading: GitHub desc1: Pin your GitHub repositories to your profile. desc2: Repositories will disappear from your profile if you remove the OAuth association with GitHub. - learn: Learn more - micro: 'Receive micropayments for time spent reading your posts directly. ' - payment: Payment Pointer rss: heading: Publishing to %{community} from RSS desc1_html: Posts will land in your %{dashboard} as drafts, and then you can publish from there. @@ -154,8 +151,12 @@ en: referential_html: Replace self-referential links with %{community}-specific links

If you check this box, the post will automatically change any URLs included in the post to refer to the version of that article on %{community} if available. This is primarily meant for folks migrating their entire blog onto %{community}.

save: Save Feed Settings submit: Submit Feed Settings - save_web: Save Web Monetization Settings - web: Web monetization + web_monetization: + header: Web monetization + receive_payments: 'Receive micropayments for time spent reading your posts directly. ' + learn_more: Learn more + payment_pointer: Payment Pointer + save_settings: Save Web Monetization Settings finalize_html: You have requested a change to %{email}. Check your inbox for the verification link to finalize the change. for_html: Settings for %{name} group: @@ -180,7 +181,7 @@ en: button: aria_label: Copy organization secret code to clipboard icon: Copy to clipboard - input: + input: aria_label: Organization secret (to be rotated regularly) text: Copied to clipboard! cta: Call-to-action box diff --git a/config/locales/views/settings/fr.yml b/config/locales/views/settings/fr.yml index 829de2e4b..1457ad3c4 100644 --- a/config/locales/views/settings/fr.yml +++ b/config/locales/views/settings/fr.yml @@ -135,9 +135,6 @@ fr: heading: GitHub desc1: Pin your GitHub repositories to your profile. desc2: Repositories will disappear from your profile if you remove the OAuth association with GitHub. - learn: Learn more - micro: 'Receive micropayments for time spent reading your posts directly. ' - payment: Payment Pointer rss: heading: Publishing to %{community} from RSS desc1_html: Posts will land in your %{dashboard} as drafts, and then you can publish from there. @@ -154,8 +151,12 @@ fr: referential_html: Replace self-referential links with %{community}-specific links

If you check this box, the post will automatically change any URLs included in the post to refer to the version of that article on %{community} if available. This is primarily meant for folks migrating their entire blog onto %{community}.

save: Save Feed Settings submit: Submit Feed Settings - save_web: Save Web Monetization Settings - web: Web monetization + web_monetization: + header: Web monetization + receive_payments: 'Receive micropayments for time spent reading your posts directly.' + learn_more: Learn more + payment_pointer: Payment Pointer + save_settings: Save Web Monetization Settings finalize_html: You have requested a change to %{email}. Check your inbox for the verification link to finalize the change. for_html: Settings for %{name} group: @@ -177,7 +178,7 @@ fr: admin: admin: Admin copy: - button: + button: aria_label: Copy organization secret code to clipboard icon: Copy to clipboard input: