Skip to content

Commit

Permalink
Merge pull request #4465 from nebulab/waiting-for-dev/fix_solidus_aut…
Browse files Browse the repository at this point in the history
…h_devise_gemfile_order

Fix expectations about solidus_auth_devise order in the Gemfile
  • Loading branch information
waiting-for-dev authored Aug 4, 2022
2 parents 3962059 + 32492e0 commit 2289410
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion backend/app/views/spree/admin/shared/_navigation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<span class="text"><%= t('spree.minimize_menu') %></span>
<% end %>
<%= render partial: 'spree/admin/shared/locale_selection' %>
<%= render partial: 'spree/admin/shared/navigation_footer' %>
<% if lookup_context.exists?('spree/admin/shared/_navigation_footer') %>
<%= render partial: 'spree/admin/shared/navigation_footer' %>
<% else %>
<%= render partial: 'spree/admin/shared/navigation_footer_fallback' %>
<% end %>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'spec_helper'

describe "spree/admin/shared/_navigation_footer", type: :view, partial_double_verification: false do
describe "spree/admin/shared/_navigation_footer_fallback", type: :view, partial_double_verification: false do
let(:user) { FactoryBot.build_stubbed(:admin_user) }
let(:ability) { Object.new.extend(CanCan::Ability) }
before do
Expand Down
1 change: 0 additions & 1 deletion frontend/app/views/spree/shared/_login_bar_items.html.erb

This file was deleted.

3 changes: 2 additions & 1 deletion frontend/app/views/spree/shared/_nav_bar.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<nav id="top-nav-bar" class="columns ten">
<ul id="nav-bar" class="inline" data-hook>
<%= render 'spree/shared/locale_selector' %>
<%= render 'spree/shared/login_bar_items' %>
<%# solidus_auth_devise or a custom auth system can replace this partial %>
<%= render 'spree/shared/login_bar_items' if lookup_context.exists?('spree/shared/_login_bar_items') %>
<li id="search-bar" data-hook>
<%= render partial: 'spree/shared/search' %>
</li>
Expand Down

0 comments on commit 2289410

Please sign in to comment.