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: use `no_resource_found` partial
Damian Legawiecbf807ab1867e
diff --git a/admin/app/views/spree/admin/option_types/index.html.erb b/admin/app/views/spree/admin/option_types/index.html.erbindex e3501cbc7b..dac62cbcdb 100644--- a/admin/app/views/spree/admin/option_types/index.html.erb+++ b/admin/app/views/spree/admin/option_types/index.html.erb@@ -49,8 +49,5 @@</table></div><% else %>- <div class="text-muted p-5 d-flex align-items-center w-100 justify-content-center">- <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::OptionType)) %>- <%= link_to_with_icon 'plus', Spree.t(:add_one), new_object_url, class: 'btn btn-link' if can?(:create, Spree::OptionType) %>- </div>+ <%= render 'spree/admin/shared/no_resource_found' %><% end %>diff --git a/admin/app/views/spree/admin/roles/index.html.erb b/admin/app/views/spree/admin/roles/index.html.erbindex da7e2740d2..475b312893 100644--- a/admin/app/views/spree/admin/roles/index.html.erb+++ b/admin/app/views/spree/admin/roles/index.html.erb@@ -28,8 +28,5 @@</table></div><% else %>- <div class="alert alert-warning">- <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Role)) %>- <%= link_to_with_icon('plus', Spree.t(:add_one), new_object_url, class: 'btn btn-link') if can? :create, Spree::Role %>- </div>+ <%= render 'spree/admin/shared/no_resource_found' %><% end %>diff --git a/admin/app/views/spree/admin/taxonomies/index.html.erb b/admin/app/views/spree/admin/taxonomies/index.html.erbindex 80a4c758b9..7608d72c7a 100644--- a/admin/app/views/spree/admin/taxonomies/index.html.erb+++ b/admin/app/views/spree/admin/taxonomies/index.html.erb@@ -46,8 +46,5 @@</table></div><% else %>- <div class="text-center w-100 text-muted m-5">- <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Taxonomy)) %>- <%= link_to_with_icon 'plus', Spree.t(:add_one), new_object_url, class: 'btn btn-link' if can?(:create, Spree::Taxonomy) %>- </div>+ <%= render 'spree/admin/shared/no_resource_found' %><% end %>diff --git a/admin/app/views/spree/admin/webhooks_subscribers/index.html.erb b/admin/app/views/spree/admin/webhooks_subscribers/index.html.erbindex 020a37530d..f2df5f3868 100644--- a/admin/app/views/spree/admin/webhooks_subscribers/index.html.erb+++ b/admin/app/views/spree/admin/webhooks_subscribers/index.html.erb@@ -22,8 +22,5 @@</div><%= render 'spree/admin/shared/index_table_options', collection: @webhooks_subscribers, simple: true %><% else %>- <div class="text-center no-objects-found m-5">- <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Webhooks::Subscriber)) %>- <%= link_to_with_icon('plus', Spree.t(:add_one), new_object_url) if can? :create, Spree::Webhooks::Subscriber %>!- </div>+ <%= render 'spree/admin/shared/no_resource_found' %><% end %>