Skip to content

Commit

Permalink
A few tweaks to article index view
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbergja committed Jan 6, 2020
1 parent 569d371 commit 6b15cab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/views/articles/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<% if has_search_parameters? %>
<div class="articles">
<section id="sidebar" class="page-sidebar col-lg-3 order-first"><div id="facets" class="facets sidenav facets-toggleable-md"><%= render 'facets', facets: @facets %></div></div>
<div id="content" class="col-md-7 col-sm-8">
<section id="content" class="col-lg-9 order-last">
<%= render 'catalog/constraints' %>
<%= render partial: 'catalog/paginate_compact', object: @articles %>
<%= render 'search_results', articles: @articles %>
<%= render partial: 'catalog/results_pagination', locals: {:@response => @articles} %>
</div>
</section>
<section id="sidebar" class="page-sidebar col-lg-3 order-first"><div id="facets" class="facets sidenav facets-toggleable-md"><%= render 'facets', facets: @facets %></div></section>
</div>
</div>
<% else #show home page if no search params %>
<div id="content">
<%= render 'catalog/home' %>
Expand Down

0 comments on commit 6b15cab

Please sign in to comment.