Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Admin: add handy integrations directory links (#13268)
Damian Legawiecef31e551611e
diff --git a/admin/app/views/spree/admin/integrations/index.html.erb b/admin/app/views/spree/admin/integrations/index.html.erbindex 231909247d..26e171496a 100644--- a/admin/app/views/spree/admin/integrations/index.html.erb+++ b/admin/app/views/spree/admin/integrations/index.html.erb@@ -14,16 +14,28 @@<%= Spree.t('admin.integrations.page_subtitle') %></div>- <% grouped_available_store_integrations.each do |group, integrations| %>- <% if group.present? %>- <div class="my-2 text-muted font-weight-light text-uppercase"><%= Spree.t(group) %></div>+ <% if grouped_available_store_integrations.any? %>+ <% grouped_available_store_integrations.each do |group, integrations| %>+ <% if group.present? %>+ <div class="my-2 text-muted font-weight-light text-uppercase"><%= Spree.t(group) %></div>+ <% end %>++ <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 mb-4">+ <% integrations.each do |integration| %>+ <%= render 'spree/admin/integrations/integration', integration_class: integration %>+ <% end %>+ </div><% end %>- <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 mb-4">- <% integrations.each do |integration| %>- <%= render 'spree/admin/integrations/integration', integration_class: integration %>- <% end %>- </div>+ <p class="text-muted text-center my-5">+ Find more integrations in <%= external_link_to 'Integrations Directory', 'https://spreecommerce.org/docs/integrations/integrations', class: 'text-decoration-none font-weight-bold', target: '_blank' %>+ </p>+ <% else %>+ <p class="text-muted text-center my-5">+ No integrations installed yet. Find integrations in++ <%= external_link_to 'Integrations Directory', 'https://spreecommerce.org/docs/integrations/integrations', class: 'text-decoration-none font-weight-bold', target: '_blank' %>+ </p><% end %></div></div>diff --git a/admin/app/views/spree/admin/payment_methods/index.html.erb b/admin/app/views/spree/admin/payment_methods/index.html.erbindex e94785c9e8..0222935eb8 100644--- a/admin/app/views/spree/admin/payment_methods/index.html.erb+++ b/admin/app/views/spree/admin/payment_methods/index.html.erb@@ -42,4 +42,8 @@</tbody></table></div>-<% end %>\ No newline at end of file+<% end %>++<p class="text-muted text-center my-5">+ Find more payment methods in <%= external_link_to 'Integrations Directory', 'https://spreecommerce.org/docs/integrations/integrations', class: 'text-decoration-none font-weight-bold', target: '_blank' %>+</p>\ No newline at end of filediff --git a/admin/app/views/spree/admin/shared/_user_dropdown.html.erb b/admin/app/views/spree/admin/shared/_user_dropdown.html.erbindex 49acbaa745..c1ba348b8e 100644--- a/admin/app/views/spree/admin/shared/_user_dropdown.html.erb+++ b/admin/app/views/spree/admin/shared/_user_dropdown.html.erb@@ -29,8 +29,9 @@<h6 class="dropdown-header mt-2"><%= Spree.t(:support) %></h6>- <%= external_link_to Spree.t(:help_center), 'https://spreecommerce.org/docs/user', class: 'dropdown-item justify-content-between', target: '_blank' %>- <%= external_link_to Spree.t(:contact_us), 'https://spreecommerce.org/contact/', class: 'dropdown-item justify-content-between', target: '_blank' %>+ <%= link_to_with_icon 'book', Spree.t('admin.documentation'), 'https://spreecommerce.org/docs', class: 'dropdown-item', target: '_blank' %>+ <%= link_to_with_icon 'brand-slack', Spree.t('admin.slack'), 'https://slack.spreecommerce.org/', class: 'dropdown-item', target: '_blank' %>+ <%= link_to_with_icon 'message', Spree.t(:contact_us), 'https://spreecommerce.org/contact/', class: 'dropdown-item', target: '_blank' %><% end %><div class="dropdown-divider"></div>diff --git a/admin/config/locales/en.yml b/admin/config/locales/en.ymlindex 8e451f5a1d..3c1b05cf70 100644--- a/admin/config/locales/en.yml+++ b/admin/config/locales/en.yml@@ -67,6 +67,7 @@ en:back_end: Only on admin panelboth: On both admin panel & storefrontfront_end: Only on storefront+ documentation: Documentationedit_billing_address: Edit billing addressedit_contact_information: Edit contact informationedit_profile: Edit Profile@@ -228,6 +229,7 @@ en:shipment_transfer:wrong_destination: Wrong destinationshow_json: Show JSON+ slack: Slackstock_transfers:add_products_tip: You need to select a destination location firststore_credit: