Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
27 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<% # main container for facets/limits menu -%> | ||
<% if has_facet_values? facet_field_names(groupname) %> | ||
<div id="facets<%= "-#{groupname}" unless groupname.nil? %>" class="facets sidenav facets-toggleable-sm"> | ||
<div class="navbar"> | ||
<h2 class="facets-heading"> | ||
<%= groupname.blank? ? t('blacklight.search.facets.title') : t("blacklight.search.facets-#{groupname}.title") %> | ||
</h2> | ||
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#facet-panel<%= "-#{groupname}" unless groupname.nil? %>-collapse" aria-controls="facet-panel<%= "-#{groupname}" unless groupname.nil? %>-collapse" aria-expanded="false" aria-label="Toggle facets"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
</div> | ||
<div id="facet-panel<%= "-#{groupname}" unless groupname.nil? %>-collapse" class="facets-collapse collapse"> | ||
<%= render_facet_partials facet_field_names(groupname) %> | ||
</div> | ||
</div> | ||
<% end %> |
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,19 +1,4 @@ | ||
<% # main container for facets/limits menu -%> | ||
<% if has_facet_values? %> | ||
<div id="facets" class="facets sidenav facets-toggleable-sm"> | ||
<div class="navbar"> | ||
<h2 class="facets-heading"> | ||
<%= t('blacklight.search.facets.title') %> | ||
</h2> | ||
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#facet-panel-collapse" aria-controls="facet-panel-collapse" aria-expanded="false" aria-label="Toggle facets"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
</div> | ||
<div id="facet-panel-collapse" class="facets-collapse collapse"> | ||
<%= render_facet_partials %> | ||
</div> | ||
</div> | ||
<% # container for facet groups -%> | ||
<% facet_group_names.each do |groupname| %> | ||
<%= render partial: "facet_group", locals: {groupname: groupname} %> | ||
<% end %> |
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