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.8.1 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.5.1 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.6.3 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.8.0 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.7.1 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.6.2 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.3 app/views/spree/admin/users/_tabs.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.2 app/views/spree/admin/users/_tabs.html.erb
solidus_backend-2.7.0 app/views/spree/admin/users/_tabs.html.erb