mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 11:23:48 -05:00
Hide ‘7 days’ paragraph from basic view
It looks too prominent as a paragraph on the page. This commit moves the info about how long we keep data for into the ‘empty’ message we show when there are no results (ie the message people will see if they search for something that was sent more than 7 days ago).
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
notifications,
|
||||
caption="Recent activity",
|
||||
caption_visible=False,
|
||||
empty_message='No messages found',
|
||||
empty_message='No messages found  (messages are kept for 7 days)'|safe,
|
||||
field_headings=['Recipient', 'Status'],
|
||||
field_headings_visible=False
|
||||
) %}
|
||||
|
||||
@@ -52,13 +52,13 @@
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
<p class="bottom-gutter">
|
||||
{% if current_user.has_permissions('view_activity') %}
|
||||
{% if current_user.has_permissions('view_activity') %}
|
||||
<p class="bottom-gutter">
|
||||
<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>
|
||||
 
|
||||
{% endif %}
|
||||
Data available for 7 days
|
||||
</p>
|
||||
Data available for 7 days
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{{ ajax_block(
|
||||
partials,
|
||||
|
||||
@@ -289,7 +289,7 @@ def test_shows_message_when_no_notifications(
|
||||
)
|
||||
|
||||
assert normalize_spaces(page.select('tbody tr')[0].text) == (
|
||||
'No messages found'
|
||||
'No messages found (messages are kept for 7 days)'
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user