mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Merge pull request #2156 from alphagov/hide-7-days-bsic
Hide ‘7 days’ paragraph from basic view
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
notifications,
|
notifications,
|
||||||
caption="Recent activity",
|
caption="Recent activity",
|
||||||
caption_visible=False,
|
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=['Recipient', 'Status'],
|
||||||
field_headings_visible=False
|
field_headings_visible=False
|
||||||
) %}
|
) %}
|
||||||
|
|||||||
@@ -52,13 +52,13 @@
|
|||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% 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>
|
<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>
|
||||||
 
|
 
|
||||||
{% endif %}
|
Data available for 7 days
|
||||||
Data available for 7 days
|
</p>
|
||||||
</p>
|
{% endif %}
|
||||||
|
|
||||||
{{ ajax_block(
|
{{ ajax_block(
|
||||||
partials,
|
partials,
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ def test_shows_message_when_no_notifications(
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert normalize_spaces(page.select('tbody tr')[0].text) == (
|
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