Skip to content

Commit

Permalink
Improve the message when there are no search results
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-dxw committed May 12, 2023
1 parent 939da99 commit fc1d2f3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
27 changes: 22 additions & 5 deletions ds_judgements_public_ui/templates/judgment/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,28 @@ <h1>{{ pagetitle }}</h1>
{% include "includes/results_search_component.html" %}
<div class="results__container">
<div class="results__list-layout-container">
<div class="results__result-controls-container">{% include "includes/result_controls.html" %}</div>
<div class="results__result-list-container">
{% include "includes/results_list.html" %}
{% include "includes/pagination.html" %}
</div>
{% if context.search_results %}
<div class="results__result-controls-container">{% include "includes/result_controls.html" %}</div>
<div class="results__result-list-container">
{% include "includes/results_list.html" %}
{% include "includes/pagination.html" %}
</div>
{% else %}
<h2>We found no results</h2>
<p>
If you're unable to find a particular judgment, you may wish to check
<a href="{% url 'what_to_expect' %}#section-coverage">whether we cover that court and date</a>.
</p>
<p>
In particular, we do not have:
<ul>
<li>any court judgments before 2003</li>
<li>any Crown Court, County Court or Magistrates' Court judgments,</li>
</ul>
and only have a limited selection of tribunal decisions.
</p>
<p>We are working to add more historical judgments.</p>
{% endif %}
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h2 id="section-coverage">Limited coverage of judgments and decisions</h2>
<ul>
<li>Crown courts</li>
<li>County courts</li>
<li>Magistrate courts</li>
<li>Magistrates' courts</li>
<li>United Kingdom Competition Appeals Tribunal</li>
<li>United Kingdom Employment Tribunal</li>
<li>
Expand Down

0 comments on commit fc1d2f3

Please sign in to comment.