Sha256: 701d682bfd2dc88cff8c2d7b85c93ff9d4619400e5f487176c4ba455bed8b939

Contents?: true

Size: 1.17 KB

Versions: 47

Compression:

Stored size: 1.17 KB

Contents

<% content_for :tabs do %>
  <nav>
    <ul class='tabs' data-hook="admin_user_tab_options">
      <li<%== ' class="active"' if current == :account %>>
        <%= link_to t("spree.admin.user.account"), spree.edit_admin_user_path(@user) %>
      </li>
      <% if can?(:addresses, @user) %>
        <li<%== ' class="active"' if current == :address %>>
          <%= link_to t("spree.admin.user.addresses"), spree.addresses_admin_user_path(@user) %>
        </li>
      <% end %>
      <% if can?(:orders, @user) %>
        <li<%== ' class="active"' if current == :orders %>>
          <%= link_to t("spree.admin.user.order_history"), spree.orders_admin_user_path(@user) %>
        </li>
      <% end %>
      <% if can?(:items, @user) %>
        <li<%== ' class="active"' if current == :items %>>
          <%= link_to t("spree.admin.user.items"), spree.items_admin_user_path(@user) %>
        </li>
      <% end %>
      <% if can?(:display, Spree::StoreCredit) %>
        <li<%== ' class="active"' if current == :store_credits %>>
          <%= link_to t("spree.admin.user.store_credit"), spree.admin_user_store_credits_path(@user) %>
        </li>
      <% end %>
    </ul>
  </nav>
<% end %>

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
solidus_backend-2.9.6 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.8.6 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.9.5 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.9.4 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.6.6 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.7.4 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.8.5 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.9.3 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.9.2 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.7.3 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.6.5 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.5.2 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.9.1 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.9.0 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.9.0.rc.1 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.8.4 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.8.3 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.7.2 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.6.4 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.8.2 app/views/spree/admin/users/_tabs.html.erb