We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14e05d2 commit 1a74417Copy full SHA for 1a74417
app/views/search/results.html.erb
@@ -36,12 +36,16 @@
36
</ol>
37
<%= render partial: "results_callouts" %>
38
<% elsif @errors.blank? %>
39
- <div class="no-results">
40
- <p class="hd-2">No results found for your search</p>
41
- </div>
+ <main id="results">
+ <div class="no-results">
+ <p class="hd-2">No results found for your search</p>
42
+ </div>
43
+ </main>
44
<% end %>
45
</main>
- <%= render partial: "results_sidebar" %>
46
+ <% if @results.present? %>
47
+ <%= render partial: "results_sidebar" %>
48
+ <% end %>
49
</div>
50
51
0 commit comments