forked from projectblacklight/blacklight_advanced_search
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes projectblacklight#127 * Removes the render_constraints_filters override method * Removes the _facet_limit.html.erb code that duplicates facet limits * Specs run green
- Loading branch information
Showing
7 changed files
with
12 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
inherit_from: .rubocop_todo.yml | ||
require: rubocop-rspec | ||
require: rubocop-rails | ||
|
||
AllCops: | ||
DisplayCopNames: true | ||
|
13 changes: 0 additions & 13 deletions
13
app/views/blacklight_advanced_search/_facet_limit.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
<div class="advanced_facet_limit"> | ||
<div class="inclusive_or card card-body bg-light mb-3"> | ||
<h5>Any of:</h5> | ||
<ul class="list-unstyled facet-values"> | ||
<% advanced_query.filters[facet_field.key].each do |value| %> | ||
<li> | ||
<span class="selected"><%= h(value) %></span> | ||
<%= link_to(remove_advanced_facet_param(facet_field.key, value, params), :class => "remove") do %> | ||
<span class="remove-icon"></span>✖<span class="sr-only">[remove]</span> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<%= render_facet_limit display_facet, :layout => nil, :partial => advanced_search_facet_partial_name(display_facet) %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters