mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 00:33:58 -04:00
Remove ‘Stop’ links from dashboard
Now you have to click in to cancel a broadcast instead.
This commit is contained in:
@@ -25,9 +25,8 @@
|
|||||||
{% endcall %}
|
{% endcall %}
|
||||||
{% call field(align='right') %}
|
{% call field(align='right') %}
|
||||||
{% if item.status == 'broadcasting' %}
|
{% if item.status == 'broadcasting' %}
|
||||||
<p class="govuk-body letter-recipient-summary">
|
<p class="govuk-body govuk-!-margin-top-6 govuk-!-margin-bottom-0">
|
||||||
Live until {{ item.finishes_at|format_datetime_relative }}
|
Live until {{ item.finishes_at|format_datetime_relative }}
|
||||||
<a href="{{ url_for('.cancel_broadcast_message', service_id=current_service.id, broadcast_message_id=item.id) }}" class="destructive-link destructive-link--no-visited-state">Stop broadcasting</a>
|
|
||||||
</p>
|
</p>
|
||||||
{% elif item.status == 'cancelled' %}
|
{% elif item.status == 'cancelled' %}
|
||||||
<p class="govuk-body govuk-!-margin-top-6 govuk-!-margin-bottom-0 govuk-hint">
|
<p class="govuk-body govuk-!-margin-top-6 govuk-!-margin-bottom-0 govuk-hint">
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ def test_broadcast_dashboard(
|
|||||||
assert [
|
assert [
|
||||||
normalize_spaces(row.text) for row in page.select('table')[0].select('tbody tr')
|
normalize_spaces(row.text) for row in page.select('table')[0].select('tbody tr')
|
||||||
] == [
|
] == [
|
||||||
'Example template To England and Scotland Live until tomorrow at 2:20am Stop broadcasting',
|
'Example template To England and Scotland Live until tomorrow at 2:20am',
|
||||||
]
|
]
|
||||||
assert [
|
assert [
|
||||||
normalize_spaces(row.text) for row in page.select('table')[1].select('tbody tr')
|
normalize_spaces(row.text) for row in page.select('table')[1].select('tbody tr')
|
||||||
|
|||||||
Reference in New Issue
Block a user