Sha256: 97b62f1561a9214102c6be8e1550a52e6916cdd890bc6d6fb1f0c69fcc97e958

Contents?: true

Size: 707 Bytes

Versions: 6

Compression:

Stored size: 707 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_frontend-4.2.0.rc5 app/views/spree/shared/_link_to_account.html.erb
spree_frontend-4.2.0.rc4 app/views/spree/shared/_link_to_account.html.erb
spree_frontend-4.2.0.rc3 app/views/spree/shared/_link_to_account.html.erb
spree_frontend-4.2.0.rc2 app/views/spree/shared/_link_to_account.html.erb
spree_frontend-4.2.0.rc1 app/views/spree/shared/_link_to_account.html.erb
spree_frontend-4.2.0.beta app/views/spree/shared/_link_to_account.html.erb