mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-22 10:11:04 -04:00
Change logic around to be clearer
Think this is a clearer expression of what the intent it.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user