app/views/spree/admin/users/_tabs.html.erb in spree_backend-4.7.2 vs app/views/spree/admin/users/_tabs.html.erb in spree_backend-4.8.1

- old
+ new

@@ -2,17 +2,7 @@ <%= page_header_back_button spree.admin_users_path %> <%= @user.email %> <% end %> <% content_for :page_tabs do %> - <% user_tabs.items.each do |tab| %> - <% next unless tab.available?(current_ability, @user) %> - <li class="nav-item"> - <%= link_to_with_icon( - tab.icon_key, - Spree.t(tab.label_translation_key), - tab.url(@user), - class: tab.active?(current) ? 'active nav-link' : 'nav-link' - ) %> - </li> - <% end %> + <%= render partial: 'spree/admin/shared/tabs', locals: { tabs: user_tabs, object: @user, current: current } %> <% end %>