Change logic around to be clearer

Think this is a clearer expression of what the intent it.
This commit is contained in:
Chris Hill-Scott
2020-05-07 09:50:03 +01:00
parent f30187b529
commit 8655e519aa
2 changed files with 4 additions and 4 deletions

View File

@@ -285,7 +285,7 @@ def get_notifications(service_id, message_type, status_override=None):
limit_days=service_data_retention_days,
prev_page=prev_page,
next_page=next_page,
more_than_can_be_shown=(next_page and search_term),
show_pagination=(not search_term),
status=request.args.get('status'),
message_type=message_type,
download_link=download_link,

View File

@@ -33,12 +33,12 @@
</div>
{% endif %}
{% if more_than_can_be_shown %}
{% if show_pagination %}
{{ previous_next_navigation(prev_page, next_page) }}
{% elif next_page %}
<p class="table-show-more-link">
Only showing the first 50 messages
</p>
{% else %}
{{ previous_next_navigation(prev_page, next_page) }}
{% endif %}
</div>