Sha256: f470252730124b57083c01f0eb984ad01d319d891857104891cb6dde09f9b8db

Contents?: true

Size: 1003 Bytes

Versions: 3

Compression:

Stored size: 1003 Bytes

Contents

<% if 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>
    <li data-hook="user-logout-link">
      <%= link_to spree.admin_logout_path, method: Devise.sign_out_via do %>
        <i class='fa fa-sign-out'></i>
        <%= t('spree.logout') %>
      <% end %>
    </li>

    <% 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

3 entries across 3 versions & 1 rubygems

Version Path
solidus_auth_devise-2.5.4 lib/views/backend/spree/admin/shared/_navigation_footer.html.erb
solidus_auth_devise-2.5.3 lib/views/backend/spree/admin/shared/_navigation_footer.html.erb
solidus_auth_devise-2.5.2 lib/views/backend/spree/admin/shared/_navigation_footer.html.erb