Skip to content

Commit

Permalink
Update the facet partial to avoid render_facet_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Nov 23, 2021
1 parent a7122f9 commit 6d39936
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions app/views/catalog/facet.html.erb
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
<div class="facet-pagination top row justify-content-between">
<%= render 'facet_pagination' %>
</div>

<div data-controller="facet-filter">
<%= render BlacklightModalComponent.new do |component| %>
<% component.header { facet_field_label(@facet.key) } %>
<% component.body do %>
<%= render 'facet_index_navigation' if @facet.index_range && @display_facet.index? %>
<div data-facet-filter-target="list">
<%= render_facet_limit(@display_facet, layout: false) %>
<%= render Blacklight::System::ModalComponent.new do |component| %>
<% component.prefix do %>
<div class="facet-pagination top row justify-content-between">
<%= render 'facet_pagination' %>
</div>
<% end %>
<% component.title { facet_field_label(@facet.key) } %>
<%= render 'facet_index_navigation' if @facet.index_range && @display_facet.index? %>

<div class="facet-extended-list" data-facet-filter-target="list">
<%= render Blacklight::FacetComponent.new(display_facet: @display_facet,
blacklight_config: blacklight_config,
layout: false) %>
</div>

<% component.footer do %>
<div class="facet_pagination bottom row">
<div class="facet-pagination bottom row justify-content-between">
<div class="col-sm-4">
<input type="text" id="filterInput" data-action="keyup->facet-filter#filter" placeholder="Filter..." class="form-control form-control-sm">
</div>
Expand Down

0 comments on commit 6d39936

Please sign in to comment.