Sha256: 52fdd262bd2583dbc15c8827da42405c6bc06925b39277ba0ade68eccef9d08d

Contents?: true

Size: 1.3 KB

Versions: 77

Compression:

Stored size: 1.3 KB

Contents

<!-- solidus_auth_devise replaces this partial with it's own login_nav.
     But we provide a default implementation below that should work with
     any typical `rails generate spree:custom_user` auth, if you need something
     else you can override it like solidus_auth_devise does.
-->
<% if try_spree_current_user %>
  <ul id="login-nav" class="admin-login-nav">
    <li data-hook="user-account-link">
      <% if can?(:admin, try_spree_current_user) %>
        <%= link_to spree.edit_admin_user_path(try_spree_current_user) do %>
          <i class='fa fa-user'></i>
          <%= try_spree_current_user.email %>
        <% end %>
      <% else %>
        <a>
          <i class='fa fa-user'></i>
          <%= try_spree_current_user.email %>
        </a>
      <% end %>
    </li>

    <% if respond_to? :spree_logout_path %>
      <li data-hook="user-logout-link">
        <%= link_to spree_logout_path do %>
          <i class='fa fa-sign-out'></i>
          <%= t('spree.logout') %>
        <% end %>
      </li>
    <% end %>

    <% if spree.respond_to? :root_path %>
      <li data-hook="store-frontend-link">
        <%= link_to spree.root_path, target: '_blank' do %>
          <i class='fa fa-external-link'></i>
          <%= t('spree.back_to_store') %>
        <% end %>
      </li>
    <% end %>
  </ul>
<% end %>

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
solidus_backend-3.1.9 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.1.8 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.0.8 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.0.7 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-2.11.17 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.1.7 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-2.11.16 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.0.6 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.1.6 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-2.11.15 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-2.11.14 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.0.5 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.1.5 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-2.11.13 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.0.4 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.1.4 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-2.11.12 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.0.3 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.1.3 app/views/spree/admin/shared/_navigation_footer.html.erb
solidus_backend-3.1.2 app/views/spree/admin/shared/_navigation_footer.html.erb