Merge pull request #2156 from alphagov/hide-7-days-bsic

Hide ‘7 days’ paragraph from basic view
This commit is contained in:
Chris Hill-Scott
2018-07-10 17:24:48 +01:00
committed by GitHub
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)'
)