mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-13 09:50:08 -04:00
Move the ‘who did what’ stuff to the bottom
The most important part of the broadcast is what content was sent where (and when). This commit reduces the priority of the ‘meta’ information, like who prepared and approved the broadcast. I also think that the ‘end’ time is a lot less important than the start time, since most people will receive the alert at or near to the start time.
This commit is contained in:
@@ -99,11 +99,6 @@
|
||||
{% else %}
|
||||
{{ page_header(broadcast_message.template_name) }}
|
||||
|
||||
<p class="govuk-body govuk-!-margin-bottom-3">
|
||||
Created by {{ broadcast_message.created_by.name }} and approved by
|
||||
{{ broadcast_message.approved_by.name }}.
|
||||
</p>
|
||||
|
||||
<p class="govuk-body govuk-!-margin-bottom-3">
|
||||
Started broadcasting
|
||||
{{ broadcast_message.starts_at|format_datetime_human }}.
|
||||
@@ -147,4 +142,11 @@
|
||||
}) }}
|
||||
</div>
|
||||
|
||||
{% if broadcast_message.status != 'pending-approval' %}
|
||||
<p class="govuk-body govuk-!-margin-bottom-3">
|
||||
Prepared by {{ broadcast_message.created_by.name }} and approved by
|
||||
{{ broadcast_message.approved_by.name }}.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -1037,34 +1037,34 @@ def test_start_broadcasting(
|
||||
'status': 'broadcasting',
|
||||
'finishes_at': '2020-02-23T23:23:23.000000',
|
||||
}, [
|
||||
'Created by Alice and approved by Bob.',
|
||||
'Started broadcasting on 20 February at 8:20pm.',
|
||||
'Live until tomorrow at 11:23pm Stop broadcast early',
|
||||
'Prepared by Alice and approved by Bob.',
|
||||
]),
|
||||
({
|
||||
'status': 'broadcasting',
|
||||
'finishes_at': '2020-02-22T22:20:20.000000', # 2 mins before now()
|
||||
}, [
|
||||
'Created by Alice and approved by Bob.',
|
||||
'Started broadcasting on 20 February at 8:20pm.',
|
||||
'Finished broadcasting today at 10:20pm.',
|
||||
'Prepared by Alice and approved by Bob.',
|
||||
]),
|
||||
({
|
||||
'status': 'finished',
|
||||
'finishes_at': '2020-02-21T21:21:21.000000',
|
||||
}, [
|
||||
'Created by Alice and approved by Bob.',
|
||||
'Started broadcasting on 20 February at 8:20pm.',
|
||||
'Finished broadcasting yesterday at 9:21pm.',
|
||||
'Prepared by Alice and approved by Bob.',
|
||||
]),
|
||||
({
|
||||
'status': 'cancelled',
|
||||
'cancelled_by_id': sample_uuid,
|
||||
'cancelled_at': '2020-02-21T21:21:21.000000',
|
||||
}, [
|
||||
'Created by Alice and approved by Bob.',
|
||||
'Started broadcasting on 20 February at 8:20pm.',
|
||||
'Stopped by Carol yesterday at 9:21pm.',
|
||||
'Stopped by Alice yesterday at 9:21pm.',
|
||||
'Prepared by Bob and approved by Carol.',
|
||||
]),
|
||||
))
|
||||
@freeze_time('2020-02-22T22:22:22.000000')
|
||||
|
||||
Reference in New Issue
Block a user