Sha256: 4703fd0b0389d6d539a3f23c31ab9ff52c8f10e521d02c6e14bfda64f4cb944b

Contents?: true

Size: 772 Bytes

Versions: 1

Compression:

Stored size: 772 Bytes

Contents

<% if try_spree_current_user %>
  <%= link_to Spree.t(:my_account).upcase, spree.account_path, class: 'dropdown-item' if spree.respond_to?(:account_path) %>
  <% if spree.respond_to(:admin_orders_path) %>
    <%= link_to Spree.t('nav_bar.admin_panel'), spree.admin_orders_path(locale: nil), class: 'dropdown-item text-uppercase' if try_spree_current_user.has_spree_role?(:admin) %>
  <% end %>
  <%= link_to Spree.t(:logout).upcase, spree_logout_path, class: 'dropdown-item', method: :get if defined?(spree_logout_path) %>
<% else %>
  <%= link_to Spree.t(:login).upcase, spree_login_path, class: 'dropdown-item' if defined?(spree_login_path) %>
  <%= link_to Spree.t(:sign_up).upcase, spree_signup_path, class: 'dropdown-item' if defined?(spree_signup_path) %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_frontend-4.4.0 app/views/spree/shared/_link_to_account.html.erb