Skip to content

Commit

Permalink
Merge pull request #693 from nationalarchives/no-results-message
Browse files Browse the repository at this point in the history
Add a message when no search results are returned
  • Loading branch information
dragon-dxw authored May 15, 2023
2 parents 1958513 + fc1d2f3 commit d06cfc7
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 d06cfc7

Please sign in to comment.