Skip to content

Commit

Permalink
Move base views into the shared directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Nov 3, 2016
1 parent 93d9d9f commit ed64b78
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/blacklight/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<div id="main-container" class="<%= container_classes %>">
<%= content_for(:container_header) %>
<%= render partial: '/flash_msg', layout: 'shared/flash_messages' %>
<%= render partial: 'shared/flash_msg', layout: 'shared/flash_messages' %>

<div class="row">
<%= content_for?(:content) ? yield(:content) : yield %>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/views/shared/_header_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= link_to application_name, root_path, class: "navbar-brand" %>

<div class="collapse navbar-toggleable-xs float-md-right" id="user-util-collapse">
<%= render partial: '/user_util_links' %>
<%= render 'shared/user_util_links' %>
</div>
</div>
</nav>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

describe "_user_util_links" do
RSpec.describe "shared/_user_util_links" do

let :blacklight_config do
let(:blacklight_config) do
Blacklight::Configuration.new.configure do |config|
config.navbar.partials = { bookmark: Blacklight::Configuration::ToolConfig.new(partial: 'blacklight/nav/bookmark', if: :render_bookmarks_control?) }
end
Expand All @@ -15,7 +15,7 @@
allow(controller).to receive(:render_bookmarks_control?).and_return true
allow(view).to receive(:has_user_authentication_provider?).and_return false
allow(view).to receive_message_chain(:current_or_guest_user, :bookmarks, :count).and_return(count)
render :partial => "user_util_links"
render "shared/user_util_links"
expect(rendered).to have_selector('#bookmarks_nav span.tag[data-role=bookmark-counter]', text: "#{count}")
end

Expand Down

0 comments on commit ed64b78

Please sign in to comment.