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:
Chris Hill-Scott
2018-07-10 17:06:06 +01:00
parent 47e83c6922
commit 3902d0a05c
3 changed files with 7 additions and 7 deletions

View File

@@ -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
) %}

View File

@@ -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>
&emsp;
{% endif %}
Data available for 7 days
</p>
Data available for 7 days
</p>
{% endif %}
{{ ajax_block(
partials,

View File

@@ -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)'
)